badget

Biggest Sale! Special Offer!

Get 30% discount on all of our single themes with this coupon code: #30%SALE

Hurry up! *Limited time offer*

The progress of the widget sidebar

Tagged: ,

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #63529
    pelchat118
    Participant

    HellO

    how to make sidebar widgets follow the flow of the page without stopping.

    #63606

    Hi there,

    For this you have to add below code into your child theme function file which will flow the page sidebar without stopping.

    if ( !function_exists('newscard_dequeue_script') ) {
        function newscard_dequeue_script() {
            wp_dequeue_script( 'jquery-sticky' );
            wp_dequeue_script( 'newscard-jquery-sticky' );
        }
    }
    
    add_action( 'wp_enqueue_scripts', 'newscard_dequeue_script' );

    Thank you!

    #63737
    pelchat118
    Participant

    Anywhere in the function file ?
    I try it and this not work ? No change ?

    #63786

    Hi @pelchat118,

    Sorry there was a word misplaced in the code. We have updated the previous provided code. Now you can again copy those code. But the above Code will stop the script for Sidebar widgets and also for the Sticky Header Navigation.

    So for the Better Solution Please paste the below custom CSS code in Appearance > Customize > Additional CSS to flow/scroll the page sidebar without stopping and for this process you don’t need to make a child theme.

    .widget-area .sticky-wrapper,
    .widget-area .sticky-wrapper.is-sticky {
    	height: auto !important;
    }
    .widget-area .sticky-wrapper .sticky-sidebar,
    .widget-area .sticky-wrapper.is-sticky .sticky-sidebar {
    	width: 100% !important;
    	position: relative !important;
    	top: auto !important;
    }

    Thanks

    #63788
    pelchat118
    Participant

    Thank you very much its working !!!

    #63802

    Welcome anytime @pelchat118

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