Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • Hi,
    Tried already.
    In my function file of my child theme

    function wp_change_aviajs() {
       wp_dequeue_script( 'avia-default' );
       wp_enqueue_script( 'avia-default-child', get_stylesheet_directory_uri().'/js/avia-snippet-sticky-header.js', array('jquery'), 2, true );
    }
    add_action( 'wp_print_scripts', 'wp_change_aviajs', 100 );

    If you seen my responsive mobile view, you saw that the menu just disappear and appear again when you scroll down.

    Hi Yigit,

    Could you update the answer to the latest version of Enfold? I am trying to achieve the same thing but now the code is on js/avia-snippet-sticky-header.js.

    I follow the code and notice in the function.php it add the script via
    avia_enqueue_script_conditionally( $condition2 , 'avia-sticky-header', $template_url."/js/avia-snippet-sticky-header.js", array('avia-default'), $vn, true);
    but tried editing the avia-snippet-sticky-header.js to the above but is not being updated.

    Please advise

    Thanks

    • This reply was modified 6 years, 1 month ago by mathswizard.
    in reply to: fullscreen slider resizing on phone #671196

    Hi,

    I do not know if this is still an on fixing but I found the issue.

    It is the appearing of Chrome URL Bar.

    For example.
    When i load the page, the url bar appears with the website. So the page height is 880px.
    But when I scroll down the page height is 936px, therefore since the CSS for fullslider is base by 100% height, it rescale the picture within the fullslider to 936px.
    And when I scroll up again, the URL bar appears, so the height went back to 880px.
    Therefore resulting in the sudden resizing of the images in fullslider.

    Hope there will be a beautiful fixed for this.

    Thanks

Viewing 3 posts - 1 through 3 (of 3 total)