Support » Fixing WordPress » How do I edit menu html?

  • Avi


    hi how do i edit the

    <div id="menu">
            <li class="emphasis"><a>">Home</a>
    <li><a href="">Alan Reviews</a></li>
            <?php wp_list_pages('title_li=&depth=1&exclude=35,38,40,42,47,104'); ?>

    code for menus in order to insert a few more lins of html in between
    i cant seem to find the file in witch this is stored in the ftp

    im talking about specificly this line:
    <li><a href="">Alan Reviews</a></li>

Viewing 3 replies - 1 through 3 (of 3 total)
  • The exact location of the code depends on your theme.

    If you are using a free theme, post a link to its download site here and someone may be able to look at its code to help. If you are using a paid theme, we cannot examine its code or options, so you should contact the theme supplier.



    ok the theme is Graphene

    heres the Graphene download page link

    Heres a direct download link

    please any help would be well appreciated thanks

    You could use the wp_list_pages filter.

    Or, if you can edit the code you showed, you can modify the args to wp_list_pages() to include echo=0 and assign the output to a variable that you can manipulate.

    I think this is how you start, by editing the call to wp_list_pages:

    <?php $menu = wp_list_pages('echo=0&title_li=&depth=1&exclude=35,38,40,42,47,104');
    // Alter $menu here, then echo it
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How do I edit menu html?’ is closed to new replies.