Jump to content

"block-yui_" IDs

Recommended Posts

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

#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 by tuanphan

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
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
  • 7 months later...

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.