Unable to remove Featured Image in Post page.
-
Hey guys, please help me. I want my featured image to be show up in blog page, but not in a post page. Topic title is not entirely correct as I managed to find out how to remove the image, but the problem is it leaves my page with large blank white space and background colored title (which means if I highlight the blank space I can see the title) – so it was not the solution I’m looking for. I attach four images for your reference.
Blog page – https://dl-2.kraken.io/982bad2686b03fcf92bd383114bcba0f/FeaImgBlog.png
Post page – https://dl-2.kraken.io/896a48cc64ad7d7570754054915d1a70/FeaImgPost.png
Post page – https://dl-2.kraken.io/3c8384d9b4393d664b0742d299ef456c/FeaImgPost2.pngCurrently using the latest WP 4.2.2 , and Tesseract theme. List of things I have tried but didn’t work ;
– Add several variation of CSS – display: none = such as .single .featured-image { display: none; } to custom CSS
– Remove <?php if ( has_post_thumbnail()
– Change true value to false, change the size value in function php = set_post_thumbnail_size( 1580, 480, true );The only thing worked for me so far is removing – <div class=”entry-background” style=”background-image: url(<?php echo esc_url( $thumbnail[0] ); ?>)”> <header class=”entry-header”> in content-single.php
This code highlighted when I point out the featured image in inspect element. But removing it only removes the image, and leaves my page with blank space. Check this image – https://dl-2.kraken.io/7ebd885607d976cce9fc5ceee617ce32/FeaImgPost3.png
single.php – https://pasted.co/b5900b49
content-blog.php – https://pasted.co/8a456e08
content-single.php – https://pasted.co/f4d53aab (EDITED – upload the original one, previously upload the one with some codes removed)Please let me know if you guys need more information. Any help is highly appreciated. Thank you.
- The topic ‘Unable to remove Featured Image in Post page.’ is closed to new replies.