Skip Navigation

[Resolved] Add toolset page title to theme

This support ticket is created 4 years, 11 months 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 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 3 replies, has 2 voices.

Last updated by Luo Yang 4 years, 11 months ago.

Assisted by: Luo Yang.

Author
Posts
#1512803
page-title2.jpg
page-title.jpg

Hi, Support I would like to add the toolset page titles from my custom posts to my theme. So I would like the page title to appear left top like the titles in the theme. I have added two images to explain. Please could you assist me with this? Also, is their a way to hide the author and post date?

I am using a theme called the simple and I have enabled the child theme.

#1514039

Hello,

It depends on your theme files, Toolset content template works only in post content area.

For example, there is a custom post type "my-cpt" in your website, you can try these:
1) copy theme file "single.php" from parent theme "the simple", save it into the child theme folder as "single-my-cpt.php"
https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post

2) Edit file "single-my-cpt.php", use WordPress function the_title() to output post title in where you want:
https://developer.wordpress.org/reference/functions/the_title/

#1514083

Hi, Lou, I hope you are well today. I understand what you are telling me to do but I am completely clueless as to what I should be editing.

I found a single-portfolio which I copied but it has a lot of coded and no reference to the_title. Also, how do I hook into this page so that the machine pages use this file?

#1514089

You need to locate theme file for renderring the specific place as your screenshot:
https://toolset.com/wp-content/uploads/2020/02/1512803-page_title2.jpg

It might be other theme file, since I don't have a copy of your theme file in my localhost, I am not sure which theme file is the specific one, I suggest you check it with your theme author for it.