Aurora Posted September 2, 2023 Share Posted September 2, 2023 Hi, I'd like to change my site title into small caps. In another post in this forum, I found this code for changing a header into small caps: h1 { font-variant: small-caps; } I tried it and it worked. Then I exchanged "h1" for "site-title," but that didn't work. Does anyone know what the correct descriptor would be? Many thanks! Link to comment
Solution paul2009 Posted September 2, 2023 Solution Share Posted September 2, 2023 4 minutes ago, Aurora said: I'd like to change my site title into small caps. I exchanged "h1" for "site-title," but that didn't work. This is because h1 is an element and is therefore referred to by the element name only - "h1". On Squarespace 7.1, the site title is an "a" element and has an id attribute of "site-title". As "site-title" isn't the name of an element, it needs a prefix. To tell the CSS that is is an id, we prefix it with a hash (#) character. The CSS would therefore be: #site-title { font-variant: small-caps; } Did this help? Please give feedback by clicking an icon below ⬇️ Aurora 1 Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional. Would you like your customers to be able to mark their favourite products in your Squarespace store? Link to comment
Aurora Posted October 3, 2023 Author Share Posted October 3, 2023 On 9/2/2023 at 11:52 AM, paul2009 said: This is because h1 is an element and is therefore referred to by the element name only - "h1". On Squarespace 7.1, the site title is an "a" element and has an id attribute of "site-title". As "site-title" isn't the name of an element, it needs a prefix. To tell the CSS that is is an id, we prefix it with a hash (#) character. The CSS would therefore be: #site-title { font-variant: small-caps; } Did this help? Please give feedback by clicking an icon below ⬇️ Hi, I'd also like to change my name in the footer (after the copyright symbol) into small caps and 0.04em letter spacing (like my site title). Is that possible? My website: https://www.kristinkuehn.com My password: 2eRFn7gQ Many thanks! 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