Viewing 6 replies - 1 through 6 (of 6 total)
  • Alexandra

    (@alexandrastan001)

    Hi,

    If you want to remove the sidebar, then please have a look at this documentation: https://docs.themeisle.com/article/103-how-to-remove-sidebar-from-single-blog-posts-in-zerif.

    Best regards,
    Alexandra

    Thread Starter jelsie03

    (@jelsie03)

    I don’t have the below code that I am suppose to remove in my actual coding. Is there something else that I am suppose to remove and do I do the same thing to remove the sidebar from a page?

    <div class=”sidebar-wrap col-md-3 content-left-wrap”>
    <?php get_sidebar(); ?>
    </div><!– .sidebar-wrap –>

    Below is the code I have in the single.php

    <?php
    /**
    * The Template for displaying all single posts.
    */
    get_header(); ?>

    <div class=”clear”></div>

    </header> <!– / END HOME SECTION –>
    <?php zerif_after_header_trigger(); ?>

    <div id=”content” class=”site-content”>

    <div class=”container”>
    <?php zerif_before_single_post_trigger(); ?>
    <div class=”content-left-wrap col-md-9″>
    <?php zerif_top_single_post_trigger(); ?>
    <div id=”primary” class=”content-area”>
    <main itemscope itemtype=”https://schema.org/WebPageElement&#8221; itemprop=”mainContentOfPage” id=”main” class=”site-main”>
    <?php while ( have_posts() ) : the_post();

    get_template_part( ‘content’, ‘single’ );

    zerif_post_nav();

    // If comments are open or we have at least one comment, load up the comment template
    if ( comments_open() || ‘0’ != get_comments_number() ) :
    comments_template(”);
    endif;
    endwhile; // end of the loop. ?>
    </main><!– #main –>
    </div><!– #primary –>
    <?php zerif_bottom_single_post_trigger(); ?>
    </div><!– .content-left-wrap –>
    <?php zerif_after_single_post_trigger(); ?>
    <?php zerif_sidebar_trigger(); ?>
    </div><!– .container –>
    <?php get_footer(); ?>

    Hey there,

    Are you using a child theme? Also, please post a link to your site. Thanks!

    Thread Starter jelsie03

    (@jelsie03)

    Hi no I am not using a child theme yet. I didn’t want to go through the work of a child theme if this theme won’t work for me and I have to change it.

    The site is:

    https://testphoto.siterubix.com/children-newborns

    On my post the sidebar shows archives and meta info, although I have removed everything from my sidebar option in the widget option screen.

    https://testphoto.siterubix.com/children

    Hey there,

    Please set-up a child theme and then give it a try. Let us know how it goes. Thanks!

    kadaj

    (@aldabogskie)

    Use CSS for an alternative option if you don’t want to modify the theme.

    /* REMOVE SIDEBAR */
    .sidebar-wrap.content-left-wrap {
    display: none;
    }

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to remove sidebar from pages and post’ is closed to new replies.