ThemeShaper Forums » Thematic


Add span to navigation links

(2 posts)
  • Started 11 years ago by joelr99
  • Latest reply from joelr99
  • This topic is not resolved
  1. joelr99

    Hi Everyone

    I'm just a web designer html/css coder and I feel a lot these theme frameworks requires php knowledge because its easy not for us!


    I need to get a span tag inside the link tag on the navigation menu, like this:

    <a title="Who we are" href="#"><span>Who we are</span></a>

    How do I do this in functions.php?

    I will need the exact code because I dont know PHP at all!

    Thank you


    Posted 11 years ago #
  2. joelr99

    Phew its taken about 4 hours but I managed to get it working through trial and error.

    Here it is for anyone else looking for this in the future:

    <?php wp_list_pages('link_before=<span>&exclude=26&title_li=&link_after=</span>'); ?>

    Yeah 4 hours to create about 50 characters, I really hope it helps someone else!


    Posted 11 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.