• Hi everyone. I am using a theme (“benevolence”) which has a static menu. I love the theme, but, I need the menu to be dynamic and active. I find that editing or deleting pages in my current theme does nothing to the menu on the website – which I believe means that the menu is static. I moved it to the default theme for a second, just to see if it had an active menu and that that would fix the issue, and, low and behold, all the problems were solved. But, I need my old theme for this project.

    Is there a code for this?

    Please!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Without seeing the actaul code in the benevolence theme, it sounds like you need to have your page menu generated by wp_list_pages rather than have the links hardcoded in header.php. Compare header.php in benevolence and in the default theme and you should see a difference. Template Tags/wp list pages « WordPress Codex

    Thread Starter nycfoodproject

    (@nycfoodproject)

    songdogtech-

    I think you’re right about that! But, I don’t know how to change it so it’s generated by wp_list_pages. Any idea how to do that? For reference, the code for the benevolence theme’s header is this:

    <!DOCTYPE html
    PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN”
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”&gt;
    <html xmlns=”http://www.w3.org/1999/xhtml”&gt;
    <head>
    <title><?php bloginfo(‘name’); ?></title>

    <meta http-equiv=”Content-Type” content=”text/html; charset=<?php bloginfo(‘charset’); ?>” />
    <style type=”text/css” media=”screen”>
    @import url( <?php bloginfo(‘stylesheet_url’); ?> );
    </style>

    <link rel=”alternate” type=”application/rss+xml” title=”RSS 2.0″ href=”<?php bloginfo(‘rss2_url’); ?>” />
    <link rel=”alternate” type=”text/xml” title=”RSS .92″ href=”<?php bloginfo(‘rss_url’); ?>” />
    <link rel=”alternate” type=”application/atom+xml” title=”Atom 0.3″ href=”<?php bloginfo(‘atom_url’); ?>” />

    <link rel=”pingback” href=”<?php bloginfo(‘pingback_url’); ?>” />
    <?php wp_get_archives(‘type=monthly&format=link’); ?>
    <?php //comments_popup_script(); // off by default ?>
    <?php wp_head(); ?>

    </head>

    <body>

    <div id=”wrapper”>

    <div id=”masthead”>
    <div id=”blogTitle”>
    ” title=”<?php bloginfo(‘name’); ?>”><?php bloginfo(‘name’); ?>
    </div>
    </div>

    <div id=”insideWrapper”>

    I looked at the default code, but can’t figure out where to begin!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘how do you make a static menu sidebar active?’ is closed to new replies.