Archived topic
Custom Page/Post Title Tag
5 replies · Started by Steve on December 12, 2022
Hi GP,
Happy Holidays to all you folks! Super support on my last GP project. I can't thank you enough.
Anyhow. I'm wondering...
Is there is a PHP or snippet to change a single page <title> tag?
Hi there,
Not sure if I fully understand.
The single page doesn't use a <title> tag - this is the default markup:
https://www.screencast.com/t/t8PibQQVN
Is that what you are trying to change?
No. I'm looking to change:
<html lang="en-US" itemscope itemtype="https://schema.org/WebPage">
<head>
<meta charset="UTF-8">
<title>CHANGE THIS TITLE ON A SINGLE POST OR PAGE</title>
<meta name='robots' content='max-image-preview:large'/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="robots" content="index,follow"/>
I believe that is something created by WP automatically.
It's would be in the structure of the page/post name then the site title.
Not sure if it's customizable unfortunately - worth checking with the WP support team.
Or perhaps an SEO plugin would offer this option?
Or perhaps an SEO plugin would offer this option?
They'll do it...
I just thought if there was a simple "element" php script that could accomplish it I could avoid using a plugin. Thanks.
No problem :)