• I have done the install for localhost and all works.

    I have downloaded the files that were recommended to create my own theme (i know, big thing to take on). (hope this is the place to post, if not please advise)

    all is working out well except…

    I have a main menu and in that menu some submenues that look great.

    when I click on a sub menu and go there, I want the main menu to be in the header, where it is, and works great, the subpages will have a menu as well, and they do…

    Main Menu:

    • About
    • Products
    • Solar
    • LeafGuard
    • Gaurantee

    Solar Menu on Solar Page
    Why Solar
    Save Money
    etc…

    THE PROBLEM:
    When I inspect element on the rendered solar page in the solar menu, there is no class or tag stating it is the current item.

    QUESTIONS:
    Did I do something to any of the wordpress pages I should not have? did not mess with them

    is my menu for the solar not correctly implemented?

    <nav id="solar><?php wp_nav_menu( array( 'container_class' => 'solar_menu', 'theme_location' => 'solar' , 'container' => '' ) ); ?></nav>

    The Solar page is Why Solar to begin with… the title is the same, the menu title is the same, the page url is the same. but it does not show that it is the current page.

    I do not know what else to ask or write. been looking for 2 days now and I am stumped.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter ariapictures

    (@ariapictures)

    OKAY!!!

    I have the same solar menu in the header and on the solar page.

    inspecting element for the menu in the header shows this…

    <ul><li class="page_item page-item-62 current_page_item"><a href="https://localhost/wordpress-4.1.1/wordpress/why-solar/">Why Solar</a></li><li class="page_item page-item-2"><a href="https://localhost/wordpress-4.1.1/wordpress/sample-page/">Sample Page</a></li></ul>

    and it SHOWS the CURRENT PAGE ITEM. But it is not the solar menu.

    its code is this:

    <?php wp_nav_menu( array( ‘container_class’ => ‘solar_menu’, ‘theme_location’ => ‘solar-menu‘ , ‘container’ => ” ) ); ?>

    The Solar Menu is this:

    <nav id=”solar><ul id=” menu-solar-menu”=”” class=”menu”><li id=”menu-item-66″ class=”menu-item menu-item-type-custom menu-item-object-custom menu-item-66 nav-item”>Why Solar
    <li id=”menu-item-67″ class=”menu-item menu-item-type-custom menu-item-object-custom menu-item-67 nav-item”>Save Money
    <li id=”menu-item-68″ class=”menu-item menu-item-type-custom menu-item-object-custom menu-item-68 nav-item”>Better Solar
    <li id=”menu-item-69″ class=”menu-item menu-item-type-custom menu-item-object-custom menu-item-69 nav-item”>Planning for Solar
    </nav>

    coming from:

    <?php wp_nav_menu( array( ‘container_class’ => ‘solar_menu’, ‘theme_location’ => ‘solar‘ , ‘container’ => ” ) ); ?>

    hmm. now trying to figure out how that is working. and to get it to work on the page, as the pages will have the other menu, not the header.

    so does it work better inside the header?

    is it because the solar is correct not solar-menu, but it is pulling …

    Wait a tick… brain hurts

    Thread Starter ariapictures

    (@ariapictures)

    nope, tried something, didn’t work…

    ugh!!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Creating new THEME from scratch menu current not showing’ is closed to new replies.