Home › Forums › Support › How do I apply a different font style to ONE text block (not the entire site)?
- This topic has 7 replies, 2 voices, and was last updated 4 years ago by
Leo.
-
AuthorPosts
-
February 28, 2019 at 11:44 am #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?
GeneratePress 2.2.2February 28, 2019 at 12:04 pm #824878Leo
StaffCustomer SupportHi 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 ๐
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/February 28, 2019 at 12:43 pm #824915Nicole
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.
February 28, 2019 at 4:05 pm #825069Leo
StaffCustomer SupportSounds 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.aspDocumentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/March 3, 2019 at 10:21 am #827600Nicole
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”?
March 3, 2019 at 1:12 pm #827716Leo
StaffCustomer SupportYou 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.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/March 4, 2019 at 4:31 pm #828874Nicole
Ok, sorry, I didn’t know the extent to which you help with WordPress. Thank you.
March 4, 2019 at 6:07 pm #828936Leo
StaffCustomer SupportNo 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 ๐
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/ -
AuthorPosts
- You must be logged in to reply to this topic.