- This topic has 5 replies, 3 voices, and was last updated 4 years, 11 months ago by Theme Horse Support Team.
-
AuthorPosts
-
May 21, 2019 at 12:01 am #63529pelchat118Participant
HellO
how to make sidebar widgets follow the flow of the page without stopping.
May 22, 2019 at 10:53 am #63606Theme Horse Support TeamKeymasterHi 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!
May 28, 2019 at 12:51 am #63737pelchat118ParticipantAnywhere in the function file ?
I try it and this not work ? No change ?May 29, 2019 at 9:12 am #63786Theme Horse Support TeamKeymasterHi @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
May 29, 2019 at 10:04 am #63788pelchat118ParticipantThank you very much its working !!!
May 29, 2019 at 1:30 pm #63802Theme Horse Support TeamKeymasterWelcome anytime @pelchat118
-
AuthorPosts
- You must be logged in to reply to this topic.