Guest Posted February 6, 2020 Share Posted February 6, 2020 Site URL: https://weselect.com/ So I've been trying to add custom css to our Secondary Navigation to make one of the two buttons outlined. This works fine in the editor but once I load the live site the CSS is not applied. Is there something I'm doing wrong? This is my Custom CSS: #yui_3_17_2_1_1580978748119_1195 > div > a:nth-child(1) { color: #213651!important; background-color: #ffffff!important; border: 1px solid!important; border-color: #213651!important; } It turns out like this: Link to comment
paul2009 Posted February 6, 2020 Share Posted February 6, 2020 YUI IDs like the one in your screenshot are dynamically generated on page load. You shouldn't use these in your code because they will change next time the page is refreshed or edited. I published a guide that explains this here: In Squarespace, what are the differences between #block-yui and #yui selectors? About: SQSP User for 17 yrs. Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF Digital, building Squarespace Extensions to supercharge your commerce website. Content: Links in my posts may refer to SF Digital products or may be affiliate links. If my advice helped, you can thank me by clicking one of the feedback emojis below. I love coffee too. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.