JTeich Posted October 14, 2022 Share Posted October 14, 2022 (edited) Site URL: https://africanaeconomics.com/diverse-economies-for-youth https://africanaeconomics.com/diverse-economies-for-youth Most of the text on the website i would like to be black, so i have the code. <style> /* Hide Header */ .Header { display: none !important; } .Main { background-color: white !important; } p { color: black !important; font-family: Optima, sans-serif;!important; } </style> There is one block of text i want to be white so i put in the code. <style> /*Font Colours*/ #block-yui_3_17_2_1_1665779804803_49707 h1 { color: White;!important; font-family: Optima, sans-serif;!important; } p { color: white !important; font-family: Optima, sans-serif;!important; } </style> The problem is the code for the block of text i want to be white is turning the text of another block white as well. Again this is the page https://africanaeconomics.com/diverse-economies-for-youth Any body know what i'm doing wrong? Thanks so much Edited October 14, 2022 by JTeich Link to comment
Beyondspace Posted October 15, 2022 Share Posted October 15, 2022 (edited) 5 hours ago, JTeich said: Site URL: https://africanaeconomics.com/diverse-economies-for-youth https://africanaeconomics.com/diverse-economies-for-youth Most of the text on the website i would like to be black, so i have the code. <style> /* Hide Header */ .Header { display: none !important; } .Main { background-color: white !important; } p { color: black !important; font-family: Optima, sans-serif;!important; } </style> There is one block of text i want to be white so i put in the code. <style> /*Font Colours*/ #block-yui_3_17_2_1_1665779804803_49707 h1 { color: White;!important; font-family: Optima, sans-serif;!important; } p { color: white !important; font-family: Optima, sans-serif;!important; } </style> The problem is the code for the block of text i want to be white is turning the text of another block white as well. Again this is the page https://africanaeconomics.com/diverse-economies-for-youth Any body know what i'm doing wrong? Thanks so much You want to set style for h1 and tag in #block-yui_3_17_2_1_1665779804803_49707 ,right? You should use the following code on Home > Design > Custom Css (not in the code injection) #block-yui_3_17_2_1_1665779804803_49707 { h1 { color: White !important; font-family: Optima, sans-serif; } p { color: white !important; font-family: Optima, sans-serif; } } Edited October 15, 2022 by bangank36 JTeich 1 BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations) 🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
JTeich Posted October 15, 2022 Author Share Posted October 15, 2022 45 minutes ago, bangank36 said: You want to set style for h1 and tag in #block-yui_3_17_2_1_1665779804803_49707 ,right? You should use the following code on Home > Design > Custom Css (not in the code injection) #block-yui_3_17_2_1_1665779804803_49707 { h1 { color: White; !important; font-family: Optima, sans-serif; } p { color: white !important; font-family: Optima, sans-serif; } } Putting it under Custom Css gives me an error 😕 Link to comment
Solution Beyondspace Posted October 15, 2022 Solution Share Posted October 15, 2022 You can check my previous code. we get the error due to some wrong ";" JTeich and tuanphan 1 1 BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations) 🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
JTeich Posted October 15, 2022 Author Share Posted October 15, 2022 48 minutes ago, bangank36 said: You can check my previous code. we get the error due to some wrong ";" Wow, i thought i had just copy and pasted (and tried it several times). Thank you so much! It works :) Beyondspace 1 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