• Resolved devon4786

    (@devon4786)


    I’ve already figured out how to remove the sidebar on certain pages but I would like to know if having a specific custom sidebar on a certain page is possible? And if so, how do I go about doing it? Thanks in advance.

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

    I found a solution to remove this sidebar, maybe this is not the best solution but it’s working :

    1 : create a child theme
    2 : put a copy of page.php, call it page-without-sidebar.php, and then change comment in the top by :
    /*
    Template Name: Page without Sidebar
    */
    3 : replace this : <div id=”primary” <?php bavotasan_primary_attr(); ?>>
    by this : <div id=”primary” class=”col-md-12″>
    and remove : <?php get_sidebar(); ?>
    4 : modify you page in wordpress admin and change the model, or template (i don’t know in english version of wordpress) and update

    Normaly you get the page without sidebar.

    If you like my answer, it will be nice to make donation on my website http://www.irishtrip.deazweb.com

    Thx for support me

    Thanks a lot Alphonix, this worked! really well. But i didn’t created a child theme…

    Awesome solution

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom sidebar on specific page’ is closed to new replies.