• Resolved totallywp

    (@panatapattu)


    Hi,

    I am creating a custom WooCommerce website. I registered a sidebar and it only shows on the Shop page. But that sidebar not showing in Category pages. I didn’t override any plugin file. How can I set up this sidebar for the Category page?

    This is my widget registration code.

    function theme_widgets_init() {
    register_sidebar( array(
    'name' => ( 'Main Sidebar', 'theme' ), 'id' => 'sidebar-1', 'description' => ( 'Add widgets here to appear in your main sidebar.', 'theme' ),
    'before_widget' => '', 'after_widget' => '',
    'before_title' => '',
    'after_title' => '',
    ) );
    }
    add_action( 'widgets_init', 'theme_widgets_init' );

    Thanks in advance

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Sidebar not showing in category pages’ is closed to new replies.