[Support request] sticky navigation not working without jquery

Home Forums Support sticky navigation not working without jquery

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1471176
    Deepak

    Hello,

    I am using the release candidate of GP 3.X and in this theme the sticky navigation is not working if I jquery is disabled

    is sticky navigation dependent on jquery?

    I have added this in my functions.php

    // Disable Jquery
    add_filter( 'wp_enqueue_scripts', 'change_default_jquery', PHP_INT_MAX );
    
    function change_default_jquery( ){
    	
    	if ( ! is_admin() ) {
        	wp_dequeue_script( 'jquery');
        	wp_deregister_script( 'jquery');   
    
    	}
    }

    With this the sticky navigation doesn’t seem to work, when I comment out this function then the sticky navigation is working

    Regards
    Deepak

    #1471474
    David
    Staff
    Customer Support

    Hi there,

    yes, the Sticky Navigation requires jQuery. It is the only part of the theme that does. We intend to move that to vanilla JS in the future

    #1471476
    Deepak

    🙁

    Is it planned with the current 3.0 release?

    Regards
    Deepak

    #1471533
    David
    Staff
    Customer Support

    No.. its not a free theme option – its part of GP Premium, we have yet to find a method that will keep backward compatibility but it is something we’re looking into.

    #1471734
    Deepak

    Thanks David for this information

    #1471811
    David
    Staff
    Customer Support
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.