frescova Posted December 1, 2023 Share Posted December 1, 2023 Is there a "trick" to adding blocks that don't get a dynamic "yui" block ID? I'm trying to target a block with css but the ID it gets assigned is dynamic. It seems very random. Some blocks get straight up IDs #block-...) and others get "block-yui_..." added to them... Thanks in advance... Link to comment
tuanphan Posted December 1, 2023 Share Posted December 1, 2023 (edited) #yui- is dynamic but #block-yui/#block_ is static id, it won't change when you reload or refresh the page note #yui and #block-yui is different id. Edited December 1, 2023 by tuanphan frescova 1 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
melody495 Posted December 1, 2023 Share Posted December 1, 2023 5 hours ago, frescova said: Is there a "trick" to adding blocks that don't get a dynamic "yui" block ID? You can use a plugin that helps you find the block ID. There are a couple out there, google SquareSpace ID Finder. Here is one for chrome https://chrome.google.com/webstore/detail/squarespace-id-finder/igjamfnifnkmecjidfbdipieoaeghcff Happy building! -------- > 👆 <---------- Please quote or @ me when replying, or I won't get a notification Melody | Squarespace Nerd e: melody@melodylee.tech 💻 💁♀️ 1-2-1 Squarespace Training session <- feeling stuck and want to learn? 👩💻 💁♀️ Website help <- send me your to-do list. From code to plugin to domain setup. 🧰 See the tools I use (contain affiliate links) ☕ Did I help? I like coffee (Thank you) Link to comment
frescova Posted December 2, 2023 Author Share Posted December 2, 2023 Thanks everyone; I have the plug-in; just ran across several instances where either a section or block was assigned one of the "dynamic" IDs and wasn't sure why - or if it was arbitrary. @tuanphan answered my question right away and clarified things for me. Link to comment
MaryLou Posted July 10 Share Posted July 10 I have the Chrome plugin and am familiar with how to use it. But even when I inspect what I need to target, it isn't working and still shows just the yui block id. "Contact" page-- h1 heading for "Contact" I just left the h1, but that's the code I'd like to use. It's consistent with the other page titles. /* h1 { font-family: DCR Custom; font-size: 5rem; }*/ "Venue" page-- "Dove Creek Ranch" center that title only for mobile. //this is where I am trying to center DCR Wedding Venue at the top of first paragraph left of the vid /*@media screen and (max-width: 767px) { .sqs-block-html { position: absolute; text-align: center; } }*/ I have the Chrome plugin and am familiar with how to use it. But even when I inspect what I need to target, it isn't working and still shows just the yui block id. https://dcr-venue.squarespace.com/ Password: DCRwedding "Contact" page-- h1 heading for "Contact" I just left the h1, but that's the code I'd like to use. It's consistent with the other page titles. /* h1 { font-family: DCR Custom; font-size: 5rem; }*/ "Venue" page-- "Dove Creek Ranch" center that title only for mobile. //this is where I am trying to center DCR Wedding Venue at the top of first paragraph left of the vid /*@media screen and (max-width: 767px) { .sqs-block-html { position: absolute; text-align: center; } }*/ Thank you so much for any help in advance. Link to comment
tuanphan Posted July 13 Share Posted July 13 Follow this to find block id Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) 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