fleet Posted August 11, 2020 Share Posted August 11, 2020 Site URL: https://coral-bumblebee-7bh4.squarespace.com/ I have a lot of custom CSS code to adjust things. I'm using the yui ID from the html element (e.g. "yui_3_17_2_1_1597110450591_629") to select specific objects to apply edits to. However, after I make an edit to the site, all of the "yui_7_..." ids change, so I lose all my CSS edits. Does anyone know a workaround for this? Link to comment
Solution paul2009 Posted August 11, 2020 Solution Share Posted August 11, 2020 The “yui” IDs change; “block-yui” IDs do not. See the guide that I wrote here: In Squarespace, what are the differences between #block-yui and #yui selectors? About: Squarespace Circle Leader since 2017. I value honesty, transparency, diversity and great design ♥.Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™. Content: Links in my posts may refer to SF Digital products or may be affiliate links. Catch up on all the release notes and announcements 2023 [for Circle members only]. There's a public version here too!If I helped, you can thank me by clicking one of the emojis below. If you prefer, you can buy me a coffee.Improve your online store with our extensions. Link to comment
fleet Posted August 12, 2020 Author Share Posted August 12, 2020 @paul2009 you are a legend. Great blog post, was exactly what I was looking for. 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