Best Premium and Free WordPress Themes › Forums › SuperMag › Featured Image renders a blank space in posts
Tagged: featured image, single post
- This topic has 4 replies, 2 voices, and was last updated 4 years, 6 months ago by lesm.
-
AuthorPosts
-
November 12, 2019 at 4:51 pm #72439lesmParticipant
Hi,
I use WP’s Featured Image and this is causing the following problem:
I list the last 6 posts in the Home page and the featured images render normally. However in the single posts the following code is included below the post title:</header><!-- .entry-header --> <!--post thumbnal options--> <div class="single-feat clearfix"> <figure class="single-thumb single-thumb-full"> <img width="300" height="169" src="https://www.example.com/blog/wp-content/uploads/2019/11/image-8x6-e1573565541497.jpg" class="attachment-full size-full wp-post-image" alt="" /> </figure> </div> <!-- .single-feat-->
Of course the image doesn’t show up because of the ccs class but an ugly blank space is displayed in between the Title and the post content.
This seems to be caused by the following code at: /wp-content/themes/supermag/template-parts/content-single.php line 29:
?> <div class="single-feat clearfix"> <figure class="single-thumb single-thumb-full"> <?php the_post_thumbnail( $supermag_single_image_layout );?> </figure> </div><!-- .single-feat--> <?php
Please comment.
November 15, 2019 at 12:34 pm #72543acmethemesKeymasterDear Lesm,
If you can provide us your site URL, we will observe and can provide you with possible solutions.Best Regards!
November 15, 2019 at 12:51 pm #72544lesmParticipantHI,
Thanks. Please check at any post not the home page. Look at the blank space between “admin” and the AdSense ad on top.
SiteNovember 17, 2019 at 3:10 pm #72613lesmParticipantI guess a solution is to add css filtering as:
.single-feat.clearfix {display: none;}
Waiting for your comment.
November 20, 2019 at 3:41 pm #72741lesmParticipantWell, 1 week+ waiting for your comment is too much, so I fixed it with my css solution.
If you are still interested let me know to undo the fix so you can to take a look. -
AuthorPosts
- You must be logged in to reply to this topic.