Home › Forums › Jevelin Theme › Bug Blog (side bar)
Home › Forums › Jevelin Theme › Bug Blog (side bar)
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”>
<?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(); ?>
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
If you need services beyond standard support, we've got your back!
If you'd prefer not to handle the installation yourself or need help getting started, we'll set everything up for you.
We'll help you rearrange sections, adjust spacing, and modify the page structure to fit your needs.
More complex styling changes, theme option modifications, and third-party integrations.
If you need something that's not included in the theme, we can code it for you.
Web design services to create custom sections, pages, and blocks for your theme, plus graphics and visualizations.
Full website builds, custom theme development, or plugin creation from scratch.
We'll provide a clear quote based on what you need. No hidden fees.