- This topic has 7 replies, 2 voices, and was last updated 10 years, 3 months ago by
Tom.
-
AuthorPosts
-
February 16, 2016 at 4:18 am #173090
Daniel
Hi!
I’ve created a custom post type called art.
I want to disable the post image and content title for this cpt. Is it possible to do it with a function instead of hiding them manually?February 16, 2016 at 10:46 am #173157Tom
Lead DeveloperLead DeveloperHi Daniel,
Any chance you can link me to the post type?
February 17, 2016 at 2:07 am #173305Daniel
Sure, here it is: http://www.retrobitios.com/retrogaming-art/nintendo-nes-royal-purple/
I’ve hidden the sidebar, title and header by hand.
February 17, 2016 at 10:27 am #173367Tom
Lead DeveloperLead DeveloperSo you want to hide the main title and image on that page so there’s only the “Nintendo NES Royal Purple Products” section left?
February 19, 2016 at 2:55 am #173807Daniel
Hi
I’ve hidden the post title and image using the options in Generate press. The title and image in that page are custom made. The sidebar is also hidden.
I can hide those elements every time I create a new post, but I wanted to know if it was possible to do it automatically using a function or something else for this particular custom post type.
Thanks!
DanielFebruary 19, 2016 at 10:19 am #173873Tom
Lead DeveloperLead DeveloperAny chance you can show me a post where you haven’t hidden them? That will help me come up with the right code to give you 🙂
February 28, 2016 at 10:22 am #175914Daniel
Hi!
Here it is an example post with everything active:
http://www.retrobitios.com/console/nintendo-super-famicon-french-vanilla/
I’d like to remove the Title, the featured image in the header and the sidebar for this particular post type.
I’d like to keep the smaller featured image and the title next to it.By the way, thanks for your help. I thought getting rid of those elements was easier than it is. I tried to make them look like a woocommerce product page like this: http://www.retrobitios.com/product/sega-genesis-green-tea/
February 28, 2016 at 11:37 am #175942Tom
Lead DeveloperLead DeveloperTo remove the featured image and title, you can do this:
.single-console .page-header-image-single, .single-console .entry-header { display: none; }For the sidebar, you should be able to do this: https://generatepress.com/knowledgebase/choosing-sidebar-layouts/#metabox
Let me know 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.