Content Gap After Adding Sidebar – Twenty twenty Theme
-
Wordpress Theme Twenty Twenty
Latest Versions.Image: https://ibb.co/zbvLwDR .
I’ve added a sidebar in child theme using
<div class="side-bar-wrapper"><!-- .side-bar-warpper --> <?php get_sidebar( 'primary' ); ?> </div><!-- .side-bar-warpper -->
The code is in the content.php file in this position :
<article <?php post_class(); ?> id="post-<?php the_ID(); ?>"> <?php get_template_part( 'template-parts/entry-header' ); if ( ! is_search() ) { get_template_part( 'template-parts/featured-image' ); } ?> <div class="side-bar-wrapper"><!-- .side-bar-warpper --> <?php get_sidebar( 'primary' ); ?> </div><!-- .side-bar-warpper --> <div class="post-inner <?php echo is_page_template( 'templates/template-full-width.php' ) ? '' : 'thin'; ?> "> <div class="entry-content"> <?php
I’ve tried adding the code to different theme parts but still there’s a gap in content when there is an image or a wide block.
Tried changing the theme to full-width using CSS, still the sane.
Thanks in advance.
The page I need help with: [log in to see the link]
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘Content Gap After Adding Sidebar – Twenty twenty Theme’ is closed to new replies.