• Resolved enriquescribano

    (@enriquescribano)


    Hey guys!
    First I want to congratulate a themes for the great theme!

    I have recently installed it, and I am having trouble with the sidebar.
    I only want to display the sidebar on some pages, not on every of them.

    At the moment, my custom sidebar (using a plugin to change the visibility) works great in the pages it is supposed to work. But on the other pages, it appears the default sidebar (the one with Archive, Meta, … widgets). This is the one I want to delete.

    Thanks in advance!!

    Enrique

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello,

    You would need to create a child theme and create a file called sidebar.php in it.

    In that file, use this code:

    <div id="secondary" class="widget-area" role="complementary">
    	<?php dynamic_sidebar( 'sidebar-1' ); ?>
    </div><!-- #secondary -->

    You have a point about this, we should remove the default widgets in a future update.

    Thread Starter enriquescribano

    (@enriquescribano)

    Thanks vladff!!

    It works great, but there is work to do with the design yet. Because the page does not resize itself, so the space for the sidebar is left blank.

    For the next update ;D!!

    Thanks again!

    Enrique

    The page won’t resize itself and that won’t happen in the future update either, simply because it isn’t meant to work this way :).

    If you post a link to your website, I might be able to help with some styling.

    Thread Starter enriquescribano

    (@enriquescribano)

    okey!!

    forgot to mark it as resolved!

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to remove default sidebar?’ is closed to new replies.