WordPress.org

Ready to get started?Download WordPress

Forums

Displaying images in the sidebar (4 posts)

  1. Headshot
    Member
    Posted 7 years ago #

    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=\\\"http://www.website.com/wp-content/themes/MyTheme/img/pages.gif\\\" alt=\\\"Pages\\\" >

    How can i solve this?

    Thank you!

    Regards,

    Headshot

  2. Headshot
    Member
    Posted 7 years ago #

    Somebody?

  3. jamesthewitch
    Member
    Posted 6 years ago #

    I found a widget plugin, Daiko's Text Widget, that will let me insert an image in my sidebar. Check it out live at my blog, Jimboland Jots, at http://www.jimboland.com, at the top of the left sidebar.

    You'll need to download and install his plugin, activate it, and then create an image link with an absolute path to the image you wish to display.

  4. marjiec
    Member
    Posted 6 years ago #

    I created sidebar templates and put lots of images in them. I also have different sidebar templates for each galley. Creating side bar templates is easy.
    Example

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.