• Resolved Cathy Mitchell

    (@multitalentedmommy)


    <?php wp_list_bookmarks('title_li=_('')&title_before=<img src="images/Links.png" alt="links"/>&title_after='); ?>
    Can anyone help me use an img as the title, while NOT submitting a null argument for title_li? (b/c this will rid the rendered content of LI & UL tags)

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    Use the alternate argument approach. It’s simpler to read, IMO.

    <?php wp_list_bookmarks(array(
    'title_li' => '',
    'title_before' => '<img src="images/Links.png" alt="links"/>',
    'title_after' => ''
    )); ?>

    Nice, huh? This also executes faster (slightly).

    Edit: Sorry, I misunderstood your question. Try this:
    'title_li' => '<!-- blank -->'

    Thread Starter Cathy Mitchell

    (@multitalentedmommy)

    I used a style tag “display:none” to the h2 tag before the title. And made a bogus title so it will still wrap items in LI tags. ??

    <li><img src="images/links.png" alt="links"/>
    				<?php wp_list_bookmarks('categorize=0&title_li=()&title_before=<h2 style="display:none;"'); ?>						</li>
    Thread Starter Cathy Mitchell

    (@multitalentedmommy)

    thank you Otto.

    I don’t understand how to pass those “=>” arguments. I can only edit the php that I’ve learned from the wordpress codex, and a couple html tuts. So far, it’s enough. ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error in wp-list-bookmarks arguments’ is closed to new replies.