[Resolved] Best way to add theme-color

Home Forums Support [Resolved] Best way to add theme-color

Home Forums Support Best way to add theme-color

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2389257
    Max

    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!

    #2389541
    David
    Staff
    Customer Support

    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.

    #2389560
    Max

    Ok, that’s how I did it. Just wanted to confirm if this is the best way. Thanks!

    #2389637
    David
    Staff
    Customer Support

    You’re welcome

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.