Custom <title>

I want to create a custom page template that include the title of the Parent Page in its title. For example
-Locations
–Chicago, Illinois
—Offerings
----Office 365

I want the Office 365 Page title to be “Office 365 - Chicago, Illinois”

Is this possible?
I have created a short code that pulls the title of the correct ancestor, but I cannot include the short code in the title. It doesn’t change the HTML tag or the Schema for Yoast.

Thanks in advance.
S.

Hello @sabbinanti,

Thanks for asking. :slight_smile:

Changes that you are looking to make in title will require custom development work which falls outside the scope of support we can offer.

That being said, you can take a look at following resources to get started with the changes. If you are not comfortable with programming, I suggest you to get in touch with a developer:

https://digwp.com/2010/04/custom-page-titles/
https://developer.wordpress.org/reference/functions/wp_title/

Thanks.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.