how to add html in wp_list_pages();
-
my line looks like this:
<?php wp_list_pages('title_li=<h2>Pages</h2>'); ?>
I want to add an icon just after the word Pages with an img tag. Like this:
wp_list_pages('title_li=<h2>Pages <img src="/wp-content/themes/tromso/images/sidebar_icon.gif" alt="Sidebar icon" /></h2>');
The problem is: The page will not validate without the quotemarks, and it is not working with the quotemarks.
Any ways to include the quotemarks without ruining the code?
Viewing 12 replies - 1 through 12 (of 12 total)
Viewing 12 replies - 1 through 12 (of 12 total)
- The topic ‘how to add html in wp_list_pages();’ is closed to new replies.