Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1412263

    i cant get this to work
    add_action( ‘wp_enqueue_scripts’, ‘wp_change_sticky_header_script’, 100 );
    function wp_change_sticky_header_script() {
    wp_deregister_script( ‘avia-sticky-header’ );
    wp_enqueue_script( ‘avia-sticky-header-child’, get_stylesheet_directory_uri().’/js/avia-snippet-sticky-header.js’, array(‘avia-default’), $vn, true);
    }

    or this
    function jmb_avia_sticky_header()
    {
    wp_dequeue_script(‘avia-sticky-header’);
    wp_deregister_script(‘avia-sticky-header’);

    wp_register_script(‘avia-sticky-header’, ‘/wp-content/themes/enfold-child/js/avia-snippet-sticky-header.js’);
    }
    add_action(‘wp_enqueue_scripts’, ‘jmb_avia_sticky_header’);

    the deregister doesn work….

    #1412264

    now. its works….

    #1412287

    Hi,
    Glad to hear that you have this sorted out, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘sticky header js’ is closed to new replies.