Тёмный

Fix side-by-side Accordion & Image block zoom - Squarespace Fluid Engine Tutorial 

SquareSkills - Custom Squarespace Tutorials
Просмотров 472
50% 1

Recently I've encountered this issue with a client who had side-by-side image and accordion blocks and was encountering the zoom/aspect ratio change issue. It's one I've known about for a while but haven't tried to fix until now as I didn't really have a need to.
Anyhow, it's a few lines of code and quick use of the Inspect tool and you're pretty much set. Just be sure to use block IDs to avoid applying this code site-wide!
No Javascript needed, just pure CSS and about 30 seconds of right clicking and such!
Feel free to ask any questions in the comments below, if you get stuck or want to know a bit more.
=============================================
If my tutorials/tips have helped you, feel free to send me some coffee as a thank you :)
www.kwameand.c...
Interested in more Squarespace tutorials, tips and tricks?
Why not visit the SquareSkills website for more content like this:
www.SquareSkil...
/ squareskills
/ squareskills
If you're looking for something specific, some custom design, development or coding work, you can reach out to me via my website:
www.kwameand.co/
/ heykwame
/ kwameand.co
Here's the code used in the video. You can modify the properties to tailor it to match your branding and style - or take it even further.
=============================================
Insert into CSS:
/***********************
* Squareskills.dev
* Fix Side-by-Side Accordion and Image Zoom
*******************************/
//make navigation full-bleed
#BLOCKID .fluid-image-container.sqs-image-content {
height: auto!important;
aspect-ratio: YOURASPECTRATIOHERE;
}

Опубликовано:

 

9 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 8   
@YTillie2000
@YTillie2000 Год назад
Thank you!!! This has been maddening to try and work around
@squareskills
@squareskills Год назад
Happy to help. It's a frustrating issue for sure but this should solve it for the most part. Let us know if you run into any issues though and I'll update!
@YTillie2000
@YTillie2000 Год назад
@@squareskills I will, thank you again!
@squareskills
@squareskills Год назад
@@YTillie2000 No probs.
@MelissaBenedetti-rg2kz
@MelissaBenedetti-rg2kz 2 месяца назад
Should this apply to all images on the page? I have 3 images I need to do this for on the same page and it worked for the first one but when I repeat it and highlight the class from the others, the code in css appears the same but it's not actually making a change to them.
@squareskills
@squareskills 2 месяца назад
This is per-block, so it'll target individual images based on their ID, not their class. So you'd need to list each of them e.g. #BLOCKID1 .fluid-image-container.sqs-image-content, #BLOCKID2 .fluid-image-container.sqs-image-content, #BLOCKID3 .fluid-image-container.sqs-image-content { .... }
@jessicaerven3029
@jessicaerven3029 8 месяцев назад
This didnt work for me - it made the image disappear all together. Thoughts?
@squareskills
@squareskills 7 месяцев назад
Sorry, just seen this. Care to share the site?
Далее
Men Vs Women Survive The Wilderness For $500,000
31:48
Новый уровень твоей сосиски
00:33
Scroll Back to Top Button in Squarespace
19:17
Просмотров 16 тыс.