Support » Theme: Power Magazine » How to disable sticky sidebar

  • Hello everyone,

    I’m trying to disable the sticky sidebar of my wordpress site. I would like to be able to produce static, scrollable sidebar widgets. To my knowledge, the plugins that I have installed are not causing the sticky sidebar. I’m stumped and hoping for some ideas.

    Theme: Power Magazine

    I don’t have any custom CSS.

    Thank you for your time.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi @wordpressuser2019 ,

    Here’s a quick & dirty solution using CSS if there’s no way to do this through the theme settings.

    /* Make the right sidebar go away. */
    #secondary {
    	display: none; /* Use !important if needed. */
    /* Fill in the rest of the page now that there's no sidebar. */
    body.left-sidebar #primary, body.right-sidebar #primary {
    	width: 100% !important; /* Tweak as needed. */

    Good luck!

    Theme Author theme404


    Hi @wordpressuser2019,
    Create a child theme using the plugin given below.
    After activating the child theme, go to child theme functions.php paste below-given code.

    if ( ! function_exists( 'power_magazine_child_custom_scripts' ) ):
        // Remove the Sticky Sidebar  
        function power_magazine_child_custom_scripts() {
            wp_dequeue_script( 'theia-sticky-sidebar-js' );
            wp_deregister_script( 'theia-sticky-sidebar-js' );
            // Now the parent script is completely removed
    add_action( 'wp_enqueue_scripts', 'power_magazine_child_custom_scripts', 100 );
    • This reply was modified 1 month, 3 weeks ago by theme404.


    Thank you for your quick response! I tried using this code in the additional CSS, but I’m not certain it’s what I was hoping to implement.

    I would like to keep the right sidebar (and the widgets it contains) but prevent the widgets from being sticky. It seems the widgets are sticky automatically, as I have no plug-in installed that would make them sticky. I would like users to be able to scroll past the widgets (static, non-sticky sidebar).

    Thank you again for your help, I look forward to your feedback.


    Thank you for your reply, I appreciate your support. I tried doing this but was not able to access the Functions.php- is there a way to alter the code without using a child theme? Is it possible to use the additional CSS?

    Hi @wordpressuser2019 ,

    No problem. Understood. Thanks for clarifying. I’ll leave it up to the theme author to give you their expert advice.

    Good luck!

    Theme Author theme404


    Hello wordpressuser2019,

    Go to Appearance > Theme Editor and open functions.php and add the above code at the last line of function.php.

    Note: The above code will be lost when an update is available. So it is better to create child theme.

    Thank You

    • This reply was modified 1 month, 3 weeks ago by theme404.
Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.