61885 Posted October 22, 2020 Share Posted October 22, 2020 Site URL: https://www.jeremyleegibbs.com/ I have set all of the rows on my site to be horizontally and vertically centered using flex boxes. However, there are a couple places where I would like the items in a single row to be flex start, such as rows with text here https://www.jeremyleegibbs.com/materials . How do you find the static row ID that will not change when the page is reloaded? Link to comment
LIZZY-pa Posted October 22, 2020 Share Posted October 22, 2020 The easiest way to find the block number: If you’re using Google Chrome, download this Squarespace Block Identifier extension for Chrome. This extension is designed to help you find the Block Identification Number of each Block on your Squarespace Site. Open up the page with the block you want to identify, click on the Identifier Tool in your Chrome Extensions and it will instantly reveal the Block Identification Numbers (which will be something like #block-53c818fd6d3f39517aed or #block-yui_3_17_2_1_1556302617094_72323) Click on the Block you want to use and it will automatically copy the Block number for you! If you don’t use Google Chrome: Firstly, I recommend downloading it even if it’s just to use this extension, it will save you a bunch of time. Otherwise, you can right click on the block and then click Inspect. Somewhere in the code for that certain object it will say ID=block etc. Though there are a lot of “ID’s” so make sure you look for the correct one, it needs to start with block. TIP: Make sure the Block number starts with Block. If it starts with anything else, it’s not the correct ID. Link to comment
61885 Posted October 22, 2020 Author Share Posted October 22, 2020 Hey thanks for the help! I can find the block identifiers for the individual boxes, pages, and collections, but not one that represents an entire row. All of the rows seem to only be yui. Is a row identified differently? Link to comment
Solution tuanphan Posted October 23, 2020 Solution Share Posted October 23, 2020 Row has no id. You can add a spacer block above row, then target spacer block id, then use this code to target row #spacer-block-id + row { css code } 61885 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
61885 Posted October 23, 2020 Author Share Posted October 23, 2020 Thank you Tuanphan! It works perfectly! Link to comment
peach Posted April 2, 2021 Share Posted April 2, 2021 @Tuanphan, This is great—but the "row" part of your selector didn't work for me. Instead, I had to use "div": I'm using 7.0 — maybe that's the difference? #your-spacer-block-id + div { your css code } As a note—I can never seem to get the right block I'D without using this browser extension:Squarespace ID Finder I put the spacer directly above the row I wanted (it's important to check the "Elements" in your browser inspector to make sure it's correctly placed before (above) the row you want to select. Link to comment
creedon Posted April 3, 2021 Share Posted April 3, 2021 @peach Please post the URL for the page on your site where this effect should occur. If your site is not public please set up a site-wide password, if you've not already done so. Post the password here. Adding a site-wide password is not a security breach. Please read the documentation at the link provided to understand how it works. We can then take a look at your issue. Quote As a note—I can never seem to get the right block I'D without using this browser extension: What other method(s) do you try to use that don't work? Using the inspector? Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects. Link to comment
creedon Posted May 26, 2022 Share Posted May 26, 2022 6 hours ago, abibacon said: Hi, I tried this and it didn't work for me, any idea why? #block-yui_3_17_2_1_1653562497252_8176 + row This selector means find the block id then a row sibling. Blocks do not have have row siblings. Also note that spacer blocks do not have any layout rows or columns so there is nothing to target in them except a single div. Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects. 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