-
AuthorPosts
-
April 19, 2016 at 6:25 am #617104
Hello. For some reason when I click the main navigation hamburger icon it brings me to the top of the page right before the menu opens. Is there a way that I can make it so this does not happen?
April 19, 2016 at 6:37 am #617117Hey peanuttario!
I have added Vinney to the topic, who help you with the customizations to give it a look.
Thanks a lot for your patience and understandingRegards,
BasilisApril 19, 2016 at 8:26 am #617207Hi!
Please add the following to functions.php
function removeScrollToTop(){ ?> <script> jQuery(document).scroll(function() { jQuery("#advanced_menu_toggle").removeAttr("href"); jQuery("#advanced_menu_hide").removeAttr("href"); }); </script> <?php } add_action('wp_head', 'removeScrollToTop');
Best regards,
VinayApril 19, 2016 at 8:35 pm #617670Hi Vinnie! I’ve added it to the bottom of the child theme’s functions.php but it doesn’t look like it’s working.
April 20, 2016 at 9:09 am #618084Hi!
Please replace the above code with this
function removeScrollToTop(){ ?> <script> jQuery(document).scroll(function() { jQuery("#advanced_menu_toggle").removeAttr("href"); jQuery("#advanced_menu_hide").removeAttr("href"); }); </script> <?php } add_action('wp_head', 'removeScrollToTop');
If there is any issue please provide us admin details so we can take a closer look at it.
Cheers!
VinayApril 20, 2016 at 7:11 pm #618598Hi Vinnie. It still isn’t working. Here is the login info
April 21, 2016 at 3:30 am #618832Hey Vinnie! I have one additional question that pertains to the fullscreen menu that you helped me with. I have the hover set as follows:
#mobile-advanced li a:hover { background-color: transparent!important; border:none; color: #c99a54 !important; }
but for some reason the hover doesn’t appear unless you hover to the right of the menu items. Any idea why this is occurring? Take your time in your responses, no rush! Thanks!
April 22, 2016 at 9:15 pm #620220Hi!
The username and password is not working please try the below code to fix the hover issue
#mobile-advanced li a:hover .avia-menu-text{ color: #c99a54 !important; }
I’m not able to re-produce the issue on my installation please provide access so we can take a closer look into page scrolling issue.
Cheers!
VinayApril 30, 2016 at 5:45 am #624856Hi! That worked for the hover issue. Still can’t figure out the scroll to top issue though. Ive updated the user and pw below.
May 3, 2016 at 5:02 am #626159Hi,
It scrolls to the top because of this code in the js > avia.js file (line 443)
{ win.scrollTop(0); mobile_advanced.css({display:'block'}); setTimeout(function(){container.addClass('show_mobile_menu'); },10); set_height(); }
This is the line responsible for the scroll:
win.scrollTop(0);
You can remove it or comment it out.
Best regards,
IsmaelMay 3, 2016 at 11:06 pm #626795Hi Ismael!
Thank you for the advice. How do I go about commenting it out?
May 6, 2016 at 6:31 am #628113Hi,
Add two forward slashes before the code:
//win.scrollTop(0);
Best regards,
IsmaelMay 11, 2016 at 12:55 am #630310Is it possible to do this within the child theme?
May 11, 2016 at 3:02 am #630321Hi,
Yes it is possible to do this in child theme please create sam folder structure as parent theme and move the js file in js folder and make the changes :)
Best regards,
Vinay -
AuthorPosts
- You must be logged in to reply to this topic.