Featured Images on custom post types
-
Hi, I created custom post types. I always receive the featured image on top of the page as it wuld be a blog post.
Where can I switch that function off, that the theme is loading the featured image on top first?
with kind regards Andre
Hi,
It seems that your custom post type takes our standard template for blog post and if you will disable featured image here you will not see it on blog posts too. If you are creating custom post types you need to create separate template files for them too. There you will be able to enable/disable featured images and other staffs.
https://codex.wordpress.org/Post_Type_Templates
Regards
Hi thanks for the info.
I copied the single-portfolio.php file and renamed it to my custom post type. Also changed the post type within.
But I cant fugure out yet how to tell the template to diable the featured image on that post type
I tried also over global css but without effect.
.pinterest_pins .attachment-post-thumbnail {
display: none;
}
I get a result like this sample: https://roomique.com/pinterest_pins/william-katavolos-enameled-metal-and-leather-lounge-chair-for-leathercrafter-1969/
You might paste me the code snippet I need to attach to the file?
with kind regards
Andre
Try to add the following code snippet to the Custom CSS area in Theme Settings to fix this issue.
.single-pinterest_pins .entry-thumbnail {
display:none;
}
GREAT it does the job
thank you for your support
The topic ‘Featured Images on custom post types’ is closed to new replies.