mjanas10 Posted September 13 Share Posted September 13 Hi, How to change the font of a single word in a text as well as change it to italic? Something that is quite popular these days. Thanks Link to comment
Ziggy Posted September 13 Share Posted September 13 A good way can be to set the bold + Italic state of a heading or paragraph to a different font, so in the text editor when you make a word bold AND italic at the same time it changes the font. Something like this using the Heading 2 + BOLD + ITALIC: h2 strong em { font-family:script; } Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) ✨ Spark Plugin (Referral link) ☕ Did I help? Buy me a coffee? Link to comment
mjanas10 Posted September 13 Author Share Posted September 13 Hi Ziggy, Would I put it in the Custom CSS? Also wouldn't that change all the h2 everywhere in the website? Is it possible to change just a single word or is it better to create a new text item and then modify it separately? Thanks Link to comment
Ziggy Posted September 13 Share Posted September 13 Yes, in custom CSS. As I said it will only change the font when you make H2 text bold and italic. Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) ✨ Spark Plugin (Referral link) ☕ Did I help? Buy me a coffee? Link to comment
mjanas10 Posted September 13 Author Share Posted September 13 Okay, but what if I don't want it bold? And how to change just one word? Link to comment
Ziggy Posted September 14 Share Posted September 14 (edited) 9 hours ago, mjanas10 said: Okay, but what if I don't want it bold? And how to change just one word? It won't be bold or italic, it will change the font to what you want, and you can also set the font weight and colour and any other property. h2 strong em { font-family:script; font-weight:400; } Edited September 14 by Ziggy Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) ✨ Spark Plugin (Referral link) ☕ Did I help? Buy me a coffee? Link to comment
mjanas10 Posted September 20 Author Share Posted September 20 Thanks Ziggy, Is it possible to change one word in a sentence, though? E.g. "This is a sentence." I would like to change the font for the word "sentence". Thanks Link to comment
Ziggy Posted September 20 Share Posted September 20 Of course you can do that, that's what I've given you. Please try adding the code to Custom CSS. h2 strong em { font-family:script; font-weight:400; font-style: initial; } Change the word script in the code to your font family. Then make a heading that is set to Heading 2. Make any word in that heading set to bold AND italic. Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) ✨ Spark Plugin (Referral link) ☕ Did I help? Buy me a coffee? Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment