Skip Navigation

[Resolved] Disable featured image in content template

This support ticket is created 5 years ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 10 replies, has 2 voices.

Last updated by Shane 5 years ago.

Assisted by: Shane.

Author
Posts
#1470965

Tell us what you are trying to do?

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)

Thank you very much,
Terry

#1471211

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Alex,

Thank you for getting in touch.

Could you let me know which theme you are using ?

Also please could you provide me with a link to the page that you are having this issue because we can disable it using css.

Thanks,
Shane

#1471227
Screenshot 2020-01-21 at 15.30.00.jpg

Hi Shane,

Thanks very much for your quick response.

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?

Many thanks,
Terry

#1471459

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Alex,

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.

Thanks,
Shane

#1471481

Thanks a lot Shane.

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.

Many thanks,
Terry

#1471487

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Terry,

Actually, this would be mainly a divi issue because if divi doesn't provide the option to disable this natively then a css solution is needed.

What we are essentially doing in blocks is pulling the settings for the posts that Divi has.

Thanks,
Shane

#1471489

Hi Shane,

Before I installed Divi I tried this with Toolset and Gutenberg alone, but then there is no option to disable Post Title and Featured Image either?

Or is there such option and have I overlooked it?

Many thanks,
Terry

#1471501

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Terry,

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.

I hope I was able to clarify this one for you.

Thanks,
Shane

#1471507

Hi Shane,

Ok, I understand the problem now. No easy solution in Gutenberg that would work for all sites and themes. So I'll use CSS for now.

The field featured image I could omit from the input forms but Post Title will be needed.

Many thanks for your help again!
Terry

#1471511

PS I see now that it is possible to disable Post Title and Featured Image in Toolset > Post Type.

Would that work well and not cause any problems, for example in Relationships between Post Types?

Thank you!
Terry

#1471741

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Terry,

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.

Thanks,
Shane