Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #605913

    Hi there,

    I have created a site and used you option for the secondary menu on all the pages. After I got the site pretty much done I have two problems. The secondary menu does not show up on my woo commerce product pages and it also does not show up when you do a search. The main menu shows up fine, but there is no way to add the secondary menu. Can you tell me how I might be able to add the secondary menu?

    Thanks so much
    Darin
    http://harmony.naomialdort.com/

    #605915

    When I say search I mean the search results page. No way to add the secondary menu there.

    #606199

    Hey!

    Try adding this at the very end of your theme / child theme functions.php file:

    add_action('ava_after_main_title', function() {
    if(is_search() || is_singular('product')) {
    	?>
    <div id="sub_menu1" class="av-submenu-container alternate_color  avia-builder-el-0  el_before_av_slideshow_full  avia-builder-el-first  container_wrap fullsize" style="z-index: 301; width: 1100px;"><div class="container av-menu-mobile-disabled "><ul id="menu-2nd-menu" class="av-subnav-menu av-submenu-pos-center"><li id="menu-item-1078" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-top-level menu-item-top-level-1"><a href="http://harmony.naomialdort.com/guidance/events/"><span class="avia-bullet"></span><span class="avia-menu-text">Events</span><span class="avia-menu-fx"><span class="avia-arrow-wrap"><span class="avia-arrow"></span></span></span></a></li>
    <li id="menu-item-43" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-top-level menu-item-top-level-2"><a href="http://harmony.naomialdort.com/articles/"><span class="avia-bullet"></span><span class="avia-menu-text">Articles</span><span class="avia-menu-fx"><span class="avia-arrow-wrap"><span class="avia-arrow"></span></span></span></a></li>
    <li id="menu-item-41" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-top-level menu-item-top-level-3"><a href="http://harmony.naomialdort.com/videos/"><span class="avia-bullet"></span><span class="avia-menu-text">Videos</span><span class="avia-menu-fx"><span class="avia-arrow-wrap"><span class="avia-arrow"></span></span></span></a></li>
    <li id="menu-item-39" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-top-level menu-item-top-level-4"><a href="http://harmony.naomialdort.com/book/"><span class="avia-bullet"></span><span class="avia-menu-text">Book</span><span class="avia-menu-fx"><span class="avia-arrow-wrap"><span class="avia-arrow"></span></span></span></a></li>
    <li id="menu-item-38" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-top-level menu-item-top-level-5"><a href="http://harmony.naomialdort.com/biography/"><span class="avia-bullet"></span><span class="avia-menu-text">Biography</span><span class="avia-menu-fx"><span class="avia-arrow-wrap"><span class="avia-arrow"></span></span></span></a></li>
    <li id="menu-item-944" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-top-level menu-item-top-level-6"><a href="http://harmony.naomialdort.com/listen-now-mp3s/"><span class="avia-bullet"></span><span class="avia-menu-text">Listen Now MP3s</span><span class="avia-menu-fx"><span class="avia-arrow-wrap"><span class="avia-arrow"></span></span></span></a></li>
    <li id="menu-item-943" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-top-level menu-item-top-level-7"><a href="http://harmony.naomialdort.com/cdsdvds/"><span class="avia-bullet"></span><span class="avia-menu-text">CDs/DVDs</span><span class="avia-menu-fx"><span class="avia-arrow-wrap"><span class="avia-arrow"></span></span></span></a></li>
    <li id="menu-item-36" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-top-level menu-item-top-level-8"><a href="http://harmony.naomialdort.com/testimonials/"><span class="avia-bullet"></span><span class="avia-menu-text">Testimonials</span><span class="avia-menu-fx"><span class="avia-arrow-wrap"><span class="avia-arrow"></span></span></span></a></li>
    <li id="menu-item-46" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-top-level menu-item-top-level-9"><a href="http://naomialdort.com/discussion.html"><span class="avia-bullet"></span><span class="avia-menu-text">Forum</span><span class="avia-menu-fx"><span class="avia-arrow-wrap"><span class="avia-arrow"></span></span></span></a></li>
    <li id="menu-item-792" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-top-level menu-item-top-level-10"><a href="http://harmony.naomialdort.com/contact/"><span class="avia-bullet"></span><span class="avia-menu-text">Contact</span><span class="avia-menu-fx"><span class="avia-arrow-wrap"><span class="avia-arrow"></span></span></span></a></li>
    </ul></div></div>
          <?php
    }
    });

    Cheers!
    Josue

    #608761

    Hi there,

    Thanks so much for your response. I added the code to the functions.php file and it did not seem to change anything. Still no secondary menu on the search pages and the woo commerce product pages

    Also while we are at it, the secondary menu is quite a bit larger than the main menu. Is there any way to make them the same size?
    http://harmony.naomialdort.com/

    Thanks so much for your help.

    Darin

    #610464

    Hi,

    Can you please create me a WordPress administrator account? post it here as a private reply.

    Regards,
    Josue

    #610540

    Yes here you go. Thank you.

    #610563

    Hey!

    Can you please enable file editing on theme files or provide me a FTP account too?

    You need to make this file writable before you can save your changes. See the Codex for more information.

    Regards,
    Josue

    #610743

    Thank you

    #611171

    Hm, where’s the WordPress install expected to be (in FTP)?

    Best regards,
    Josue

    #614728

    Hi I just saw this sorry.

    The wordpress is installed in public_html>harmony.naomialdort.com

    Thank you

    #614758

    Hey!

    The reason the code didn’t work it’s because you’re using an old version of the theme, please update the theme to the latest version (3.5.2) and try adding the code again.

    Best regards,
    Josue

    #614957

    Perfect. I updated the theme and the code worked for the search pages. The woo commerce pages still does not have the secondary menu. If we can sort this then we are done. Thank you.

    #615453

    Hey!

    Try changing the code to:

    add_action('ava_after_main_container', function() {
    if(is_search() || is_singular('product')) {
    	?>
    <div id="sub_menu1" class="av-submenu-container alternate_color  avia-builder-el-0  el_before_av_slideshow_full  avia-builder-el-first  container_wrap fullsize" style="z-index: 301; width: 1100px;"><div class="container av-menu-mobile-disabled "><ul id="menu-2nd-menu" class="av-subnav-menu av-submenu-pos-center"><li id="menu-item-1078" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-top-level menu-item-top-level-1"><a href="http://harmony.naomialdort.com/guidance/events/"><span class="avia-bullet"></span><span class="avia-menu-text">Events</span><span class="avia-menu-fx"><span class="avia-arrow-wrap"><span class="avia-arrow"></span></span></span></a></li>
    <li id="menu-item-43" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-top-level menu-item-top-level-2"><a href="http://harmony.naomialdort.com/articles/"><span class="avia-bullet"></span><span class="avia-menu-text">Articles</span><span class="avia-menu-fx"><span class="avia-arrow-wrap"><span class="avia-arrow"></span></span></span></a></li>
    <li id="menu-item-41" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-top-level menu-item-top-level-3"><a href="http://harmony.naomialdort.com/videos/"><span class="avia-bullet"></span><span class="avia-menu-text">Videos</span><span class="avia-menu-fx"><span class="avia-arrow-wrap"><span class="avia-arrow"></span></span></span></a></li>
    <li id="menu-item-39" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-top-level menu-item-top-level-4"><a href="http://harmony.naomialdort.com/book/"><span class="avia-bullet"></span><span class="avia-menu-text">Book</span><span class="avia-menu-fx"><span class="avia-arrow-wrap"><span class="avia-arrow"></span></span></span></a></li>
    <li id="menu-item-38" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-top-level menu-item-top-level-5"><a href="http://harmony.naomialdort.com/biography/"><span class="avia-bullet"></span><span class="avia-menu-text">Biography</span><span class="avia-menu-fx"><span class="avia-arrow-wrap"><span class="avia-arrow"></span></span></span></a></li>
    <li id="menu-item-944" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-top-level menu-item-top-level-6"><a href="http://harmony.naomialdort.com/listen-now-mp3s/"><span class="avia-bullet"></span><span class="avia-menu-text">Listen Now MP3s</span><span class="avia-menu-fx"><span class="avia-arrow-wrap"><span class="avia-arrow"></span></span></span></a></li>
    <li id="menu-item-943" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-top-level menu-item-top-level-7"><a href="http://harmony.naomialdort.com/cdsdvds/"><span class="avia-bullet"></span><span class="avia-menu-text">CDs/DVDs</span><span class="avia-menu-fx"><span class="avia-arrow-wrap"><span class="avia-arrow"></span></span></span></a></li>
    <li id="menu-item-36" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-top-level menu-item-top-level-8"><a href="http://harmony.naomialdort.com/testimonials/"><span class="avia-bullet"></span><span class="avia-menu-text">Testimonials</span><span class="avia-menu-fx"><span class="avia-arrow-wrap"><span class="avia-arrow"></span></span></span></a></li>
    <li id="menu-item-46" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-top-level menu-item-top-level-9"><a href="http://naomialdort.com/discussion.html"><span class="avia-bullet"></span><span class="avia-menu-text">Forum</span><span class="avia-menu-fx"><span class="avia-arrow-wrap"><span class="avia-arrow"></span></span></span></a></li>
    <li id="menu-item-792" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-top-level menu-item-top-level-10"><a href="http://harmony.naomialdort.com/contact/"><span class="avia-bullet"></span><span class="avia-menu-text">Contact</span><span class="avia-menu-fx"><span class="avia-arrow-wrap"><span class="avia-arrow"></span></span></span></a></li>
    </ul></div></div>
          <?php
    }

    Cheers!
    Josue

    #635443

    Hi I just added this to the functions.php fil and it crashed the whole site. I replaced it with the last code you gave me and now it is up again. Can we try this again? Just want the secondary menu to show up on the search pages and woo commerce pages.

    Thanks
    Darin

    #635916

    Hi,

    Please change the code to following one

    add_action('ava_after_main_container', function() {
    if(is_search() || is_singular('product')) {
    	?>
    <div id="sub_menu1" class="av-submenu-container alternate_color  avia-builder-el-0  el_before_av_slideshow_full  avia-builder-el-first  container_wrap fullsize" style="z-index: 301; width: 1100px;">
    <div class="container av-menu-mobile-disabled ">
    <ul id="menu-2nd-menu" class="av-subnav-menu av-submenu-pos-center">
     	<li id="menu-item-1078" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-top-level menu-item-top-level-1"><a href="http://harmony.naomialdort.com/guidance/events/"><span class="avia-bullet"></span><span class="avia-menu-text">Events</span><span class="avia-menu-fx"><span class="avia-arrow-wrap"><span class="avia-arrow"></span></span></span></a></li>
     	<li id="menu-item-43" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-top-level menu-item-top-level-2"><a href="http://harmony.naomialdort.com/articles/"><span class="avia-bullet"></span><span class="avia-menu-text">Articles</span><span class="avia-menu-fx"><span class="avia-arrow-wrap"><span class="avia-arrow"></span></span></span></a></li>
     	<li id="menu-item-41" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-top-level menu-item-top-level-3"><a href="http://harmony.naomialdort.com/videos/"><span class="avia-bullet"></span><span class="avia-menu-text">Videos</span><span class="avia-menu-fx"><span class="avia-arrow-wrap"><span class="avia-arrow"></span></span></span></a></li>
     	<li id="menu-item-39" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-top-level menu-item-top-level-4"><a href="http://harmony.naomialdort.com/book/"><span class="avia-bullet"></span><span class="avia-menu-text">Book</span><span class="avia-menu-fx"><span class="avia-arrow-wrap"><span class="avia-arrow"></span></span></span></a></li>
     	<li id="menu-item-38" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-top-level menu-item-top-level-5"><a href="http://harmony.naomialdort.com/biography/"><span class="avia-bullet"></span><span class="avia-menu-text">Biography</span><span class="avia-menu-fx"><span class="avia-arrow-wrap"><span class="avia-arrow"></span></span></span></a></li>
     	<li id="menu-item-944" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-top-level menu-item-top-level-6"><a href="http://harmony.naomialdort.com/listen-now-mp3s/"><span class="avia-bullet"></span><span class="avia-menu-text">Listen Now MP3s</span><span class="avia-menu-fx"><span class="avia-arrow-wrap"><span class="avia-arrow"></span></span></span></a></li>
     	<li id="menu-item-943" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-top-level menu-item-top-level-7"><a href="http://harmony.naomialdort.com/cdsdvds/"><span class="avia-bullet"></span><span class="avia-menu-text">CDs/DVDs</span><span class="avia-menu-fx"><span class="avia-arrow-wrap"><span class="avia-arrow"></span></span></span></a></li>
     	<li id="menu-item-36" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-top-level menu-item-top-level-8"><a href="http://harmony.naomialdort.com/testimonials/"><span class="avia-bullet"></span><span class="avia-menu-text">Testimonials</span><span class="avia-menu-fx"><span class="avia-arrow-wrap"><span class="avia-arrow"></span></span></span></a></li>
     	<li id="menu-item-46" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-top-level menu-item-top-level-9"><a href="http://naomialdort.com/discussion.html"><span class="avia-bullet"></span><span class="avia-menu-text">Forum</span><span class="avia-menu-fx"><span class="avia-arrow-wrap"><span class="avia-arrow"></span></span></span></a></li>
     	<li id="menu-item-792" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-top-level menu-item-top-level-10"><a href="http://harmony.naomialdort.com/contact/"><span class="avia-bullet"></span><span class="avia-menu-text">Contact</span><span class="avia-menu-fx"><span class="avia-arrow-wrap"><span class="avia-arrow"></span></span></span></a></li>
    </ul>
    </div>
    </div>
    <?php
    }
    });

    Best regards,
    Yigit

    #638338

    Thank you that did it!

Viewing 16 posts - 1 through 16 (of 16 total)
  • The topic ‘Secondary menu not showing up on some pages’ is closed to new replies.