Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #866870

    dkawai
    Participant

    Hello,

    I’m using the content band shortcode on the icon stack, and was wondering if there’s any way (CSS or another method) to add a light stroke onto the text so that the text is legible on white portions of my background image. I know I could change the font color entirely but was wondering if adding a stroke was possible?

    Please see picture for reference

    #867362

    Lely
    Moderator

    Hi There,

    Yes that is possible using some CSS. Add this on Appearance > Customize > Custom > CSS

    .custom-text-stroke{
        text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
    }

    Feel free to change #000 to your preferred color of strokes.
    Then add the class custom-text-stroke to the text element class field.

    Hope this helps,

    #868123

    dkawai
    Participant

    Great! Helped me out immensely.

    #868572

    Prasant Rai
    Moderator

    You are most welcome. 🙂