ryanks
February 15, 2016, 10:24pm
1
I noticed on the blog page that no top border appears for posts that don’t use a featured image. I’m not sure if I’m missing something, but I would think the default behavior should be to show a full border when no image is used.
In my child theme, in content.php I have wrapped the following…
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" >
<?php the_post_thumbnail( 'sparkling-featured', array( 'class' => 'single-featured' )); ?>
</a>
with…
<?php if ( has_post_thumbnail() ) : ?>
<?php endif; ?>
I’m not sure why this wouldn’t be done already, unless like I say I’m missing something.
movin
February 23, 2016, 1:42pm
2
Hi @ryanks ,
I hope you are well today and thank you for your question.
Do you mean the featured image on single posts page or posts listing page?
Could you please share the screenshot of the issue so that i c an troubleshoot it?
Kind Regards,
Movin
ryanks
February 23, 2016, 6:38pm
3
Hi,
No top-border visible on posts listing page as seen in screenshot. Single post page didn’t have the problem. Screenshot taken in Firefox on Win/7.
Cheers
movin
February 25, 2016, 12:34pm
4
Hi @ryanks ,
Thanks for explaining the issue.
I could confirm the issue on my test site and notified the theme developer about this so that it will be fixed.
In the meanwhile you can fix it by adding the following CSS code in the Custom CSS option of the latest version of Sparkling theme on the below path.
Admin Area -> Appearance -> Customize -> Sparkling Options -> Other -> Custom CSS
body.archive .post-inner-content,
body.blog .post-inner-content {
border-top: 1px solid #dadada;
}
Best Regards,
Movin