Version 1.8 new function leaving gap in post listing
-
Just updated my parent theme to Version 1.8.
In my child theme, I’ve got a custom loop for one of my page templates that displays all posts in a certain Category.
<?php if ( is_page( 'white-collar-healthcare-pharmaceutical' )) { if ( $healthcare_query->have_posts() ) : while ( $healthcare_query->have_posts() ) : $healthcare_query->the_post(); ?> <h3><a id="notable-<?php the_ID(); ?>"></a><?php the_title(); ?></h3> <?php if ( has_tag( 'explanation-notables' )) { ?> <div class="explanation"> <?php the_content(); ?> </div> <?php } else { the_content(); } ?> <?php endwhile; ?> <?php wp_reset_postdata(); else : ?> <?php get_template_part( 'no-results' ) ?> <?php endif; // end the loop }?><!-- is_page -->
Since the update, empty containers are added between the posts. They have no height, so they’re invisible on the page, except between the 2nd and 3rd posts, where there’s a big gap now. Here’s a screenshot of my page where you can see the resulting gap in the posts:
https://grab.by/OhEmOr a link to the development site, where you can see it in action:
https://dev.kousouroslaw.com/notable-cases/racketeering-bribery/It seems that this is coming from functions in the theme-functions.php: xsbf_add_container and xsbf_end_container.
Do you think I can safely delete these functions in the parent theme? Or even better, turn them off somehow in the functions.php of my child theme?
Thanks so much.
- The topic ‘Version 1.8 new function leaving gap in post listing’ is closed to new replies.