• I am trying to hide the sidebar on the home page only so my featured images can be full width but in the index.php file the only code I see is

    do_action( 'botiga_do_sidebar' );

    To hide the sidebar I think it might be:

    Replace: <!--?php get_sidebar(); ?-->
    with: <!--?php if (!is_front_page()) {
    get_sidebar();
    } ?-->

    So I am not exactly sure how to proceed. Any ideas on what I can do?

    I do not see ” <!–?php get_sidebar(); ?–> ” in the file.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @mfghost,

    If you run the latest version of Botiga, you don’t need to touch any file. Because Botiga has option to hide sidebar blog over customizer. Just go to Appearance menu > Customize > Blog > Blog Archives > turn off the option that reads “Enable sidebar“.

    Thread Starter mfghost

    (@mfghost)

    i musy have missed it. It’ll hide it in the blog home page but let me keep in on single posts & the WC store?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Need to hide sidebar on home page only’ is closed to new replies.