How do I edit menu html? (4 posts)

  1. Avi
    Posted 3 years ago #

    hi how do i edit the

    <div id="menu">
            <li class="emphasis"><a>">Home</a>
    <li><a href="http://www.imnirvana.com/alanreviews">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="http://www.imnirvana.com/alanreviews">Alan Reviews</a></li>

  2. vtxyzzy
    Posted 3 years ago #

    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.

  3. Avi
    Posted 3 years ago #

    ok the theme is Graphene

    heres the Graphene download page link

    Heres a direct download link

    please any help would be well appreciated thanks

  4. vtxyzzy
    Posted 3 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic