Archived topic
Best way to add theme-color
3 replies · Started by Max on October 27, 2022
Hi there!
What is the best way to add theme-color to GeneratePress so that Safari changes the color of the tabs/header.
I see that I need to add this meta tag:
<meta name="theme-color" content="#ecd96f">
Do I simply create a new hook like this & display it on the entire site? Or is there a better/simpler way?
Thanks!
Hi there,
1. Enable the Elements module in Appearance > GeneratePress.
2. Create a new Hook Element in Appearance > Elements:
3. Add your code to the Hooks Text area.
4. Select the wp_head hook.
5. Set the Display Rules to: `Entire Site.
6. Publish your hook.
And thats it.
Ok, that's how I did it. Just wanted to confirm if this is the best way. Thanks!
You're welcome