Link to home
Start Free TrialLog in
Avatar of egoselfaxis
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:
<title>META TITLE GOES HERE</title>

Open in new window


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-template.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
ASKER CERTIFIED SOLUTION
Avatar of Bruce Smith
Bruce Smith
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of egoselfaxis
egoselfaxis

ASKER

Worked perfectly. Thanks so much Bruce!

- Yvan