Skip Navigation

[Resolved] How can I disable the post title in the post page of a post type?

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client wanted to hide the post title and breadcrumbs only for a specific custom post type (member-profile) while using legacy Toolset Layouts and Views. Content Templates could not be used for this purpose because the site had not migrated to Blocks.

Solution:

Hide the elements using CSS targeted specifically to the single post type body class. Adding the following CSS removes the title and breadcrumbs only from that post type without affecting others:

body.single-local-user-profile h1.page-title,
body.single-local-user-profile .kleo_framework.breadcrumb {
    display: none;
}

The CSS was added in WordPress Dashboard → Appearance → Customize → Additional CSS.

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.

This topic contains 5 replies, has 1 voice.

Last updated by valentinP-3 1 day, 22 hours ago.

Assisted by: Christopher Amirian.

Author
Posts
#2849966

I have few post types
I would like that only in one of them not to display the post title in the post page created with Layout/ content template
How can I disable the post title only in the page that show that post type?
Thank you
Valentin

#2850069

Christopher Amirian
Supporter

Languages: English (English )

Hi Valentin,

You can use a content template for that specific post type single view and in the content template, do not add the post title and add other data

- Go to WordPress Dashboard > Toolset > Dashboard
- Find the Post Type in the table
- Under the Template Column, select Create Content Template (or click on an already created content template)
- Inside that template, add whatever you want to show and do not add the post title.

For more information on how to use content templates:

hidden link

Thanks.

#2850076

Hi Cristopher,
thanks for the answer.
I am still using views and layouts (I have not migrated yet to blocks) so I think I need a css or something else. Could you please help and give me what code to put where not to display the page title and the breadcrumb in the specific "member-profile" post type? Thx

#2850077

Christopher Amirian
Supporter

Languages: English (English )

Hi,

May I have a link to member-profile post type single post link? SO I can see how it is added so I may be able to give a CSS code to hide it.

If needed for a login to see the page, I'd appreciate it if you could give me the URL/User/Pass of your WordPress dashboard after you make sure that you have a backup of your website.
It is absolutely important that you give us a guarantee that you have a backup so if something happens you will have a point of restore.

Make sure you set the next reply as private.

Thanks.

#2850186

Christopher Amirian
Supporter

Languages: English (English )

Hello Valentin,

Thank you for the login information. I added the CSS code below to WordPress Dashboard > Appearance > Customize > Additional CSS and removed the Title and the breadcrumbs from the single page:

body.single-local-user-profile h1.page-title,
body.single-local-user-profile .kleo_framework.breadcrumb {
    display: none;
}
#2850190

Thank you very much Cristopher, YOU ARE AMAZING!!!
GOD BLESS YOU!

#2850191

Thank you very much Cristopher, YOU ARE AMAZING!!!
GOD BLESS YOU!