Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1319246

    First, menu line is on top of the screen and disappear while scroling.

    When middle of background picture “touch” the top of the screen, page still scrolling down and suddenly header and menu appear on top and remain sticky.

    Is there an Enfold Demo which includes this feature? How could I get something similar?

    Here is an example of what I’m trying to emulate:

    Thank you.

    #1319594

    Hey Eduardo,

    Thank you for the inquiry.

    There is no header option like that by default but the closest thing is the Layout > Header visibility and transparency > Header is invisible and appears once the user scroll down option. As the option name suggests, this will hide the header initially and only display once the user scrolls down.

    The other site actually contains two headers, the first header is visible initially and once the document is scrolled, the second transitions down and the first header disappears.

    Best regards,
    Ismael

    #1319634

    Yes and in combination with a fullwidth sub menu on top that is not sticky ! you can have a very similar effect.
    The fullwidth sub menu has the option to show an existing navigation – so choose your main-menu there.

    #1319675

    Thank you Ismael. I had seen that hide option, but never figured out how to use it.

    And thank you too Guenni007, it makes sense. Now I have to find out how could I manage the moment during scroll action when header must appear. The example I refered to, shows header (logo and menu options) until logo located in the middle of the color section (into div.banner-logo) achieves the top of the screen. Any idea?

    Best regards.

    • This reply was modified 3 years, 2 months ago by ezimbron.
    #1319718

    The solution, which at first seemed simple to me, did not pass closer examination …

    #1319981

    Hi,

    Please go to /enfold/js/ and copy avia-snippet-sticky-header.js file to your child theme inside /js/ folder and then open the file and find

    if( st > 50 )

    and change it to 250 (or any other value, this is pixels scrolled from the top) and then add following code to functions.php file of your child theme

    add_action( 'wp_enqueue_scripts', 'wp_change_header_js', 20 );
    function wp_change_header_js() {
       wp_dequeue_style( 'avia-sticky-header-js' );
       wp_enqueue_style( 'avia-sticky-header-js-child', get_stylesheet_directory_uri().'/js/avia-snippet-sticky-header.js' );
    }

    Best regards,
    Yigit

    #1319984

    yes Yigit – that is simple. I had not thought of that

    #1319986

    Hi,


    @guenni007
    Happens to the best of us. Nevertheless thanks for your help as always :)

    Regards,
    Yigit

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