• Resolved ecdedios

    (@ecdedios)


    The header scrolls with the rest of the page; it does not stick like it’s supposed to.

    <?php
    function bento_child_enqueue_styles() {
    $parent_style = ‘bento-theme-styles’;
    wp_enqueue_style( $parent_style, get_template_directory_uri() . ‘/style.css’ );
    wp_enqueue_style( ‘child-style’,
    get_stylesheet_directory_uri() . ‘/style.css’,
    array( $parent_style ),
    wp_get_theme()->get(‘Version’)
    );
    }
    add_action( ‘wp_enqueue_scripts’, ‘bento_child_enqueue_styles’ );

    Here’s the style.css and functions.php on Github.

    • This topic was modified 6 years, 1 month ago by ecdedios.
    • This topic was modified 6 years, 1 month ago by ecdedios.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author satoristudio

    (@satoristudio)

    Hello @ecdedios, have you ticked the “Fix header on top of page on scroll” checkbox in the “Site Elements” tab of the Appearance -> Customize admin section?

    Thread Starter ecdedios

    (@ecdedios)

    You’re absolutely right; I forgot to set in the customization. Thanks, you’re the best!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Header scrolls with page’ is closed to new replies.