[Support request] Outline title (H1) font

Home Forums Support Outline title (H1) font

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1418368
    Bob

    I would like to add an outline (or shadow) to the fonts for my H1 tags that show over the featured images so that they are easier to read (home page, blog, posts). Do you have some css for that that I can put in the custom css section of the customizer?

    Please advise.

    Thanks,

    Bob

    #1418467
    David
    Staff
    Customer Support

    Hi there,

    you can throw a little text shadow at it like so:

    .page-hero h1 { 
        text-shadow: 2px 2px #0000ff; 
    }
    #1419205
    Bob

    Hi David:

    That didn’t seem to have any effect.

    Maybe I put the code in the wrong place.

    I placed that code in the GeneratePress child theme here: Appearance > Customize > CSS.

    Please let me know what I did wrong.

    Regards,

    Bob

    #1419247
    Leo
    Staff
    Customer Support

    That should be the correct place.

    I’m not seeing the CSS being added though.

    Can you try clearing any caching plugin if you are using one?

    #1419281
    Bob

    Hi Leo:

    I’ve cleared the cache several times, but no change.

    Usually when I add code to the additional css section I see the change taking place in the preview pane to the right, but not with this code.

    Bob

    #1419309
    David
    Staff
    Customer Support

    In your Customizer > Additional CSS you have this:

    .wpsp-card .wpsp-content-wrap {background: linear-gradient(0deg,rgba(0,0,0,.50) 60%,rgba(0,0,0,0) 100%);}Type a message
    
    .page-hero h1 { 
        text-shadow: 2px 2px #0000ff; 
    }

    You need to remove Type a message it is this invalid code and it means no CSS below it will execute.

    #1419380
    Bob

    Excellent… that fixed it.

    I got that code from a friend via Skype. I think the “Type a message” got in there when I copied and pasted from Skype.

    I appreciate your help.

    Bob

    #1419392
    David
    Staff
    Customer Support

    Haha 🙂 That makes sense.

    Glad to be of help.

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