Support » Themes and Templates » Displaying images in the sidebar

  • Hi,

    I created a coded a WP theme and its working fine but i want it XHTML valid.
    I replaced the normal text like Pages, Categories with images.

    How i did this:
    <?php wp_list_pages('title_li=<img src='.$GLOBALS["themeDir"].'img/pages.gif alt=Pages >' ); ?>

    This will create a error while validating.
    It needs the ” in it, like this:

    <?php wp_list_pages('title_li=<img src="'.$GLOBALS["themeDir"].'img/pages.gif" alt="Pages" >' ); ?>

    but if i do this it wont work and the output source wil look like this:

    <img src=\\\"\\\" alt=\\\"Pages\\\" >

    How can i solve this?

    Thank you!



Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Displaying images in the sidebar’ is closed to new replies.