ThemeShaper Forums » Thematic

[closed]

Add span to navigation links

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

    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!

    Anyway.

    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

    Joel

    Posted 3 years ago #
  2. joelr99
    Member

    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!

    Cheers

    Posted 3 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.