Bug Blog (side bar)

Home Forums Jevelin Theme Bug Blog (side bar)

Home Forums Jevelin Theme Bug Blog (side bar)

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • voituski
    Participant

    I want to hide sidebar on blog, but I tried to hide that on archive.php (I did thae before) but it din´t work

     

    <?php
    $style = jevelin_post_option( get_the_ID(), ‘page-blog-style’, ‘masonry masonry-shadow’ );
    set_query_var( ‘style’, $style );
    get_header();
    ?>

    <div id=”content” class=”content-with-sidebar-right”>
    <div class=”sh-group blog-list blog-style-masonry masonry-shadow”>

    <?php
    if ( have_posts() ) :
    while ( have_posts() ) : the_post();
    if( get_post_format() ) :
    get_template_part( ‘content’, ‘format-‘.get_post_format() );
    else :
    get_template_part( ‘content’ );
    endif;
    endwhile;
    else :
    get_template_part( ‘content’, ‘none’ );
    endif;
    ?>

    </div>
    <?php jevelin_pagination(); ?>

    </div>
    <div id=”sidebar” class=”sidebar-right” role=”complementary” itemscope=”itemscope” itemtype=”http://schema.org/WPSideBar”&gt;
    <?php get_sidebar(); ?>
    </div>

    <?php get_footer(); ?>

     

    I did that way:

    <?php
    $style = jevelin_post_option( get_the_ID(), ‘page-blog-style’, ‘masonry masonry-shadow’ );
    set_query_var( ‘style’, $style );
    get_header();
    ?>

    <div id=”content”>
    <div class=”sh-group blog-list blog-style-masonry masonry-shadow”>

    <?php
    if ( have_posts() ) :
    while ( have_posts() ) : the_post();
    if( get_post_format() ) :
    get_template_part( ‘content’, ‘format-‘.get_post_format() );
    else :
    get_template_part( ‘content’ );
    endif;
    endwhile;
    else :
    get_template_part( ‘content’, ‘none’ );
    endif;
    ?>

    </div>
    <?php jevelin_pagination(); ?>

    </div>

    <?php get_footer(); ?>

    Attachments:
    You must be logged in to view attached files.

    Hi @voituski,

     

    I hope you are well today and thank you for your question.

     

    You can hide the sidebar on the blog post page by adding the following CSS code in the Custom CSS code option of your theme on the below path.

     

    Admin Area -> Appearance -> Theme Settings -> Custom Code -> CSS Code

     

    .single-post div#sidebar {
        display: none;
    }
    
    .single-post  div#content {
        width: 100%;
        padding: 0;
    }

     

    Best regards,
    Shufflehound team

Viewing 2 posts - 1 through 2 (of 2 total)