akhilz on "Remove Featured Image Inside Post Twenty Twelve"

ساخت وبلاگ


I'm having trouble removing a featured image from one post in the Twenty Twelve theme. I want it to appear on the blog page.

I added this code to my child CSS but it removed the featured image from the post and blog page.

#post-1048 img.attachment-post-thumbnail.wp-post-image {

Here's the post - http://www.triresources.com/canon-inkjet-cartridge-numbers-pixma/

Here's the blog page - http://www.triresources.com/blog/

Does anyone know how to do this?


To hide visually the featured image in single post page only, and keep it show normally in blog listing page, use this code:

.single-post .wp-post-image { display: none }

To do the same thing, but limit to only 1 particular post, in this case the post id is 1048, use this code:

.single-post .post-1048 .wp-post-image { display: none }

Your suggestion worked paulwpxp. Thanks for your help!

Posted 27 seconds ago #

.single-post .wp-post-image { display: none }

sorry that code doesn't work on twenty twelve theme latest version in my case. any modifications required to the code?


WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 160 تاريخ : شنبه 29 اسفند 1394 ساعت: 16:48