mflom22 Posted February 7 Posted February 7 (edited) Is it possible to link to a different menu header section instead of defaulting to the first section? So instead of defaulting to "Dinner", I could directly link to "Lunch" being the selected section? Edited February 7 by mflom22
tuanphan Posted February 11 Posted February 11 Hi, Can you share link to this page? We can check easier Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
AshleyAR Posted February 22 Posted February 22 I am having the same issue. Here is the site - https://www.thecompounddefiance.com/sweetwater-chophouse-menu
tuanphan Posted February 26 Posted February 26 On 2/23/2024 at 2:22 AM, Krystan said: I am having the same issue. Here is the site - https://www.thecompounddefiance.com/sweetwater-chophouse-menu Suppose you want to change default section to "Drinks" Use this code to Sweetwater Chophouse Menu Page Header Code Injection <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script> <script> jQuery(document).ready(function($){ setTimeout(function(){ $('label[role="tab"]:nth-child(3)').click(); $('label[role="tab"]:nth-child(3)').addClass('menu-select-labels--active'); $('label[role="tab"]:nth-child(1)').removeClass('menu-select-labels--active'); }, 2000); }) </script> Note: You will see number 2000 in the code. It means that after the page has finished loading, 2 seconds later the code will start running. Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment