Tagged: full-width submenu, tab section link
-
AuthorPosts
-
August 26, 2019 at 7:09 pm #1131085
My dear valued Krisei-Team,
I tried to figure out myself with the various documentation / tickets, but did not work out I might have overlooked something,
I ‘ve tried to implement this https://kriesi.at/documentation/enfold/tab-sections/#link-to-a-specific-tab-on-the-tab-section to the full width menu, but testing various scenarios I failed.
Also https://kriesi.at/support/topic/fullwidth-submenu-active-link-color/ does not work. For testing purpose I kept the color red, to see if it works, but also not.
Thanks a lot for your support.
Have goods days / evening.
Yours sincerely,
SirpaAugust 29, 2019 at 8:29 am #1131812Hey Sirpa,
Thank you for using Enfold.
We would like to check the pages, but the login credentials above are invalid. Please check the info or provide another account.
Best regards,
IsmaelAugust 29, 2019 at 2:20 pm #1131881Hi Ismael,
thanks a lot for your reply. I loooooove suing Enfold:-)
Hm, maybe you just did not check the box ” Ja, ich akzeptiere euren DATENSCHUTZ” ;-) Anyway I’ll send them again.Here you are and thanks again!
lovely greetings,
SirpaSeptember 2, 2019 at 3:49 am #1132774Hi,
Sorry for the delay.
Did you try this modification?
// https://kriesi.at/documentation/enfold/fullwidth-sub-menu/#active-submenu-highlight
The demo:
// https://kriesi.at/documentation/enfold/example-of-active-submenu-highlight/
Best regards,
IsmaelSeptember 2, 2019 at 3:44 pm #1133038Dear Isamel,
the full width sub-menu with ordinary sections is working.
I’m talking about the TAB-SECTION and the single TABS. See here, site is live now: https://rundumyoga.com/yogastile/ none of the suggestions i found in the documentation /forum did work out?
e.g.
#tab-hatha
etc.
Please advise,
Thanks a lot on advance.
Kind regards
SirpaSeptember 3, 2019 at 4:18 am #1133175Hi,
Thank you for the update.
We added this script in the functions.php file.
function activateMenuItem(){ ?> <script> jQuery(document).scroll(function() { var sections = jQuery('.avia-section, .av-tab-section-container'), menu = jQuery('.av-submenu-container'), nav_height = menu.outerHeight(); jQuery(window).on('scroll', function() { var cur_pos = jQuery(this).scrollTop(); sections.each(function() { var top = jQuery(this).offset().top - 200, bottom = top + jQuery(this).outerHeight(); if (cur_pos >= top && cur_pos <= bottom) { menu.find('li').removeClass('active-menu-item'); menu.find('a[href="#' + jQuery(this).attr('id') + '"]').parent('li').addClass('active-menu-item'); } }); }); }); </script> <?php } add_action('wp_head', 'activateMenuItem');
And this code in the style.css file.
/*—————————————- // CSS – Fullwidth Submenu highlight active menu //————————————–*/ /* Active menu styles */ #top .av-submenu-container .active-menu-item, #top .av-submenu-container .active-menu-item a { background: blue !important; color: red !important; } #top .av-submenu-container .av-subnav-menu > li > a { border-left-style: none !important; border-left-width: 0px !important; }
The active menu item should be highlighted when you scroll to its designated section.
Best regards,
IsmaelSeptember 3, 2019 at 5:37 am #1133202Dear Ismael,
thanks a lot for your work.
Unfortunate the tab-sections are still not working .
No matter if I use e.g. #tab-hatha or only #hatha don#t know what am I doing wrong or what the issue is?Also the highlight of the active sub-menu (you can check here : https://rundumyoga.com/locations/#unterbilk
And this might be a stupid question but want to be sure:
Can I simply put my quick css entries to the Enfold Child: Stylesheet (style.css), then I can also “clean” it up. Made some kind of mess in this small quick css window.Thanks lot once again.
Have a lovely day.Yours sincerely,
Sirpa- This reply was modified 5 years, 3 months ago by Sirpa.
September 4, 2019 at 8:47 am #1133668Hi,
It works fine on our end. Please remove the browser cache. (see private field)
We notice that a lot of the anchor links in the sub menu don’t have their corresponding color section or grid in the page. The anchors don’t work because there is no section with that anchor to go to. Is that intentional?
Best regards,
IsmaelSeptember 4, 2019 at 10:32 pm #1134114Hi Ismael,
first of all congratulations to you and the entire team for the 6th birthday with enfold:-) just saw it this morning on Facebook. And awesome work with the update!!!!
The Tab Section has the class ID open-classes but I wanted to add the single Tabs in the sub-menu.g. Hatha/ Yin / Men only etc.but not “open-classes” = not the color section.
Vinyasa is different as I wanted to link only to the overall naming “Vinyasa-all-levels” thus its colors section not to the single tabs in the tab-section.
Sorry if I’m not able to explain properly, but several instructions how to Link TAB SECTION SINGLE TABS to the submenu failed for me.
Thanks cone again for your help.
Wishing you a good day ahead
SirpaSeptember 6, 2019 at 4:30 pm #1134989Hi,
Thanks Sirpa. Hoping for more birthdays to come. And thanks for the clarification. We added the following script to open the appropriate tab sections whenever the corresponding sub menu item is clicked.
function ava_scroll_to_tab_section() { ?> <script type="text/javascript"> (function($) { function scrollToTab(s, e,) { $(s).on(e, function(event) { var anchor, loc, cur, hash, tab, parent, pos; if( e == 'load' ) { loc = window.location.hash; hash = loc; } else { loc = $(this).attr('href'); hash = loc.substring(loc.indexOf('#')); } tab = $('.av-section-tab-title[href="'+ hash +'"]'); parent = tab.parents('.av-tab-section-outer-container'); pos = parent.offset(); tab.trigger('click'); if(hash) { setTimeout( function() { $(window).scrollTop( pos.top - 150 ) }, 100 ); } }); } $(document).ready(function() { scrollToTab( '#top .av-subnav-menu > li a', 'click' ); scrollToTab( window, 'load' ); }); })(jQuery); </script> <?php } add_action( 'wp_footer', 'ava_scroll_to_tab_section' );
Best regards,
IsmaelSeptember 11, 2019 at 7:59 pm #1137229Dear Ismael,
please apologize for getting back so late.
I’m pretty sure Enfold so also you and your team will have many more birthdays to celebrate with such a well coded theme!.Thanks a lot for your coding. Great!!!
Not sure if it is due to the coding or the theme update run, but the separators in ht sub-menu are now gone. I had the same setting as in the main menu.
Any clue?Thanks once again.
Have a lovely day / evening.
Yours sincerely,September 13, 2019 at 6:06 am #1137788Hi Sirpa,
Welcome back!
Did you add this css code in the style.css file?
#top .av-submenu-container .av-subnav-menu > li > a { border-left-style: none !important; border-left-width: 0px !important; }
That css removes the left border of the sub menu items
Best regards,
IsmaelSeptember 16, 2019 at 4:37 pm #1138864Dear Ismael,
I saw that (it seems you as it was not me;-)) have added the above code. I removed it now back to normal:-)
Thanks an have a good day,
Yours sincerely,
SirpaSeptember 17, 2019 at 4:38 am #1138998 -
AuthorPosts
- The topic ‘Link to Tab in Tab Section Full-Width Submenu / active submenu color’ is closed to new replies.