[Resolved] How do I apply a different font style to ONE text block (not the entire site)?

Home Forums Support [Resolved] How do I apply a different font style to ONE text block (not the entire site)?

Home Forums Support How do I apply a different font style to ONE text block (not the entire site)?

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #824863
    Nicole

    I want the words “Discover what a virtual assistant can do for you!” on the home page to be a different font style than the rest of my website. Is there basic CSS for that?

    #824878
    Leo
    Staff
    Customer Support

    Hi there,

    This post should offer some info:
    https://generatepress.com/forums/topic/small-text-in-one-place-only/

    Looks like you are already using it though:
    <p style="font-size:30px;text-align:center"><strong>Discover what a virtual assistant can do for you!</strong></p>

    Let me know if this helps ๐Ÿ™‚

    #824915
    Nicole

    Sorry if I was unclear. I want to change the font of this one text block to a script font (cursive font), but leave the rest of the website the easy-to-read font it already is.

    #825069
    Leo
    Staff
    Customer Support

    Sounds like you just need to add the font-family style in your HTML?

    See the HTML Font section here:
    https://www.w3schools.com/html/html_styles.asp

    #827600
    Nicole

    The html for the block is as follows:

    <p style=”font-size:30px;text-align:center”>Discover what a virtual assistant can do for you!</p>

    Would I add something like this?:
    <p style=”font-family:dancing script;”>Discover what a virtual assistant can do for you!</p>

    If so, how do I mash these two lines of html together? Also, can there be a space between “dancing” and “script” or would it just be “font-family:dancingscript” or “font-family:dancing_script”?

    #827716
    Leo
    Staff
    Customer Support

    You can use a ; to separate each style.

    As for notation, it should be this: font-family: "Dancing Script", handwriting;.

    Please keep in mind that these are general HTML questions and not theme specific.

    You can generally find good answers examples on this site https://www.w3schools.com/html/ and Google as well.

    #828874
    Nicole

    Ok, sorry, I didn’t know the extent to which you help with WordPress. Thank you.

    #828936
    Leo
    Staff
    Customer Support

    No problem!

    We definitely try to help by pointing you in the right direction as there are tons of free online sources for general WordPress and HTML help that are designed to teach you these things ๐Ÿ™‚

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