Guest Gibran Posted October 29, 2019 Share Posted October 29, 2019 Hello, I created a custom CSS class in the design editor. How do I apply my class to an object on the page? Link to comment
tuanphan Posted October 29, 2019 Share Posted October 29, 2019 Target object class/id with Inspect Element, then add CSS to Home > Design > Custom CSS Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
Guest Gibran Posted October 29, 2019 Share Posted October 29, 2019 Thanks tuanphan, I'm not sure I understand. I know I can inspect elements and add CSS classes to them, but how do you save it? As soon as I refresh the page, the class disappears from the element. This is what I have as my custom CSS: .xxx { color: green; } How do I add xxx to a <span> element permanently? Link to comment
e2astudio Posted October 30, 2019 Share Posted October 30, 2019 The only way to add a custom class to an element is to add the element yourself using a Code Block. Link to comment
Guest Gibran Posted October 30, 2019 Share Posted October 30, 2019 30 minutes ago, e2astudio said: The only way to add a custom class to an element is to add the element yourself using a Code Block. You mean by injecting javascript code? Link to comment
e2astudio Posted October 30, 2019 Share Posted October 30, 2019 59 minutes ago, Gibran said: You mean by injecting javascript code? No. Generally, there are two ways to customize page elements with CSS. The method @tuanphan is describing (inspect a Squarespace element and find the class already assigned by the system or template, then override or add styles to that specific class in Design -> Custom CSS) Add your own custom class with styles in Design -> Custom CSS and then add a Code Block containing the HTML with your custom class assigned. tuanphan 1 Link to comment
Guest Gibran Posted October 30, 2019 Share Posted October 30, 2019 I see. Thanks e2astudio. Link to comment
berna Posted September 28, 2022 Share Posted September 28, 2022 Hello I have title on top like this. How can I make the text slider? Because I can not add slider class to div. @media screen and (min-width:641px) { .Header-inner.Header-inner--top { div { font-weight: bold; position: relative; font-size: 50px; } padding: 10px; text-align: center; background: #FF0099; color: white; } } Link to comment
Reflexeon Posted January 9 Share Posted January 9 @tuanphan Hi how do I find my class code for my website? Link to comment
tuanphan Posted January 13 Share Posted January 13 On 1/9/2023 at 11:55 AM, Reflexeon said: @tuanphan Hi how do I find my class code for my website? Hi, Use Inspect element. What is your problem? We can help easier. Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care 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