egoselfaxis
asked on
Customizing meta title for 404 page template in WordPress' TwentySixteen theme
I can't seem to figure out how to customize the meta title for the 404 page template in WordPress' TwentySixteen theme.
Example:
Note that I'm currently using a child theme, and I just want to make sure I do this in such a way that whatever customizations I apply won't get overwritten the next time a update the WordPress core (like if was directly modify the file named "/wp-includes/general-temp late.php" for example).
I've tested a couple of code snippets that I came across while researching this (by pasting them into my child theme's functions.php file), but they don't appear to be working .. at least not with the TwentySixteen theme.
To be clear .. I'm 100% satisfied with how my other meta titles are being handled throughout the rest of the site (for both pages and posts, etc). I'm just looking to specially handle the meta title for my 404 page template.
Does anyone here have any suggestions as to how I might achieve something like this?
Thanks,
- Yvan
Example:
<title>META TITLE GOES HERE</title>
Note that I'm currently using a child theme, and I just want to make sure I do this in such a way that whatever customizations I apply won't get overwritten the next time a update the WordPress core (like if was directly modify the file named "/wp-includes/general-temp
I've tested a couple of code snippets that I came across while researching this (by pasting them into my child theme's functions.php file), but they don't appear to be working .. at least not with the TwentySixteen theme.
To be clear .. I'm 100% satisfied with how my other meta titles are being handled throughout the rest of the site (for both pages and posts, etc). I'm just looking to specially handle the meta title for my 404 page template.
Does anyone here have any suggestions as to how I might achieve something like this?
Thanks,
- Yvan
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
- Yvan