• Hi dear
    I’d like to know how to remove the sidebar from the main page (the one with the shop, the home page).

Viewing 1 replies (of 1 total)
  • Theme Author badjohnny

    (@badjohnny)

    Hi

    You need to edit page-templates/page-homepage.php, comment out or delete the following lines.

    do_action( 'lithestore_before_main_content');

    and

    do_action( 'lithestore_after_main_content');

    and

    get_sidebar('home');

    And you can put the following codes to remove the sidebar on shop page.

    remove_action( 'woocommerce_before_main_content', 'lithestore_before_main_content',20);
    remove_action( 'woocommerce_after_main_content', 'lithestore_after_main_content' ,10);
    remove_action( 'woocommerce_after_main_content', 'lithestore_shop_sidebar',20);

    Thanks

Viewing 1 replies (of 1 total)
  • The topic ‘remove sidebar from main shop page (home)’ is closed to new replies.