I am creating a content template for a CTP, using custom fields.
In the frontend the post title and featured image are placed above the custom fields, and I can't seem to find how to disable this in the content template. I searched the documentation and forums, but had no luck there. I am probably overlooking something simple.
Is there a way to disable the post title and featured image in a content template? (custom post single view)
I have tried this with Twenty Twenty and Divi.
With Twenty Twenty I don't see options at all to disable the post title and featured image.
With Divi I can disable the post title but not the featured image.
The website is a copy of our existing site, currently on a local server so there is nothing online yet, probably not until February.
I have attached a screenshot of the Edit Content Template page's sidebar, where you can see the option to disable post title at the bottom. If only there was a similar option for featured image, the issue will be solved?
If the featured image option isn't there then it means that you are not able to disable the featured image using our Content templates and css will be needed.
What you need to do is to inspect the page element with your browser and then find the css selector for the featured image and hide it with css.
The css should be something like this.
.my-selector{
display: none;
}
Where you will replace the my-selector with the correct selector.
I guess I will have to use it for now but I am not really happy with CSS solutions.
This may be a feature that has been missed in Toolset Blocks development using Gutenberg (and previously Divi)?
When updated in one of the future releases, I would be stuck with CSS workarounds and need to correct this in many places.
This is because the Post Title and Featured Image sections are not apart of the Post Body section. These are essentially post entry meta.
So they are there by default. Our Blocks and Views plugin are only designed to modify the post content section.
Whenever you want to disable the Entry Meta section you will need to do it using the Theme options "some themes come with this" or use CSS.
Some themes has this basic integration with Toolset so their theme settings will appear in the content templates.
If a theme doesn't carry the option then CSS would be needed to use. Even if we were to implement a solution in Toolset it wouldn't prove feasible. This is because each theme may not use the same classes for their entry meta.
What will work for one theme may not work for another theme.
You can disable it through the Post type settings.
I just checked and it should resolve the issue for you. As long as the featured image isn't there divi seems to not include that section on the frontend.