Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #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?

    #617117

    Hey 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 understanding

    Regards,
    Basilis

    #617207

    Hi!

    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,
    Vinay

    #617670

    Hi Vinnie! I’ve added it to the bottom of the child theme’s functions.php but it doesn’t look like it’s working.

    #618084

    Hi!

    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!
    Vinay

    #618598

    Hi Vinnie. It still isn’t working. Here is the login info

    #618832

    Hey 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!

    #620220

    Hi!

    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!
    Vinay

    #624856

    Hi! That worked for the hover issue. Still can’t figure out the scroll to top issue though. Ive updated the user and pw below.

    #626159

    Hi,

    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,
    Ismael

    #626795

    Hi Ismael!

    Thank you for the advice. How do I go about commenting it out?

    #628113

    Hi,

    Add two forward slashes before the code:

    //win.scrollTop(0);
    

    Best regards,
    Ismael

    #630310

    Is it possible to do this within the child theme?

    #630321

    Hi,

    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

Viewing 14 posts - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.