Home › Forums › ART WordPress Theme › Mobile layout: spacing
- This topic has 10 replies, 2 voices, and was last updated 3 years, 6 months ago by
SeaTheme.
-
AuthorPosts
-
November 1, 2022 at 12:23 pm #28500
Since one of the updates, my mobile layout no longer has equal spacing on new portfolio pages I create. [I want to enable mobile layout, not have the desktop layout on a phone.]
Is there a way of quickly making spaces between images the same across all my content on mobile, as you could when I first bought this theme a few years ago? I have many pages and complicated settings or coding for separate pages would take a long time in future.
For example, https://www.hollyfalconer.com/portfolio/turner-prize-nominees-tate-etc-magazine/November 1, 2022 at 3:03 pm #28501Hi there,
Welcome to SeaTheme forum.It is possible by custom CSS(“Appearance > Customize: Additional CSS”), like:
@media (max-width: 767px) { .single-ux-portfolio .bm-builder .module>.module-inside.single-image-inside { --top-mod-m: 50px; --bottom-mod-m: 0px; } }
Regards!
SeaTheme – FAQs – WordPress Customization – FacebookNovember 2, 2022 at 9:13 am #28505Hello, thanks for the fast reply!
This has unfortunately not worked, and has also now made some other pages have different spacing on a phone. Eg: https://www.hollyfalconer.com/personal-editorial/
Is there any other coding I could try?
ThanksNovember 3, 2022 at 11:39 am #28506Please update the above CSS as:
@media (max-width: 767px) { .bm-builder .module>.module-inside.single-image-inside { --top-mod-m: 50px!important; --bottom-mod-m: 0px!important; } }
Regards!
SeaTheme – FAQs – WordPress Customization – FacebookNovember 3, 2022 at 3:03 pm #28508Thank you so much! That has worked.
November 10, 2022 at 4:28 pm #28571Hello,
I have one more question. My final issue is that on a mobile phone, I want to have my Home page look the same as my website on a laptop. But the top of images are lining up rather than looking scattered/ different heights. Here’s where I mean for you to compare laptop VS phone: https://www.hollyfalconer.com/
Thanks,
HollyNovember 11, 2022 at 12:52 am #28577Hi
I checked your website, did not find the issue. The mobile layout does be the same as laptop now.
I’m not sure if I understand your question correctly.Can you paste a screenshot to explain it? thanks
Regards!
SeaTheme – FAQs – WordPress Customization – FacebookNovember 11, 2022 at 11:01 am #28582Hello,
Sure! No worries. Here’s the difference:
Laptop: https://snipboard.io/DLgCEf.jpg
Phone: https://snipboard.io/YSK4cd.jpg
Thanks,
HollyNovember 11, 2022 at 2:59 pm #28584Thanks
It is caused by the above custom CSS:@media (max-width: 767px) { .bm-builder .module>.module-inside.single-image-inside { --top-mod-m: 50px!important; --bottom-mod-m: 0px!important; } }You can update it as:
@media (max-width: 767px) { body:not(.home) .bm-builder .module>.module-inside.single-image-inside { --top-mod-m: 50px!important; --bottom-mod-m: 0px!important; } }
Regards!
SeaTheme – FAQs – WordPress Customization – FacebookNovember 11, 2022 at 5:11 pm #28587Hello,
Thanks so much for this. That’s made it better, but it’s not quite fixed. The images aren’t in the same position relative to each other on a mobile phone.
See these examples:Laptop: https://snipboard.io/GEKRTF.jpg
Phone: https://snipboard.io/JIfzmy.jpgLooking forward to hearing your thoughts, thanks!
November 12, 2022 at 4:59 am #28588Hi,
This layout cannot be exactly the same as the desktop because of the spacing settings, you can only approximate the same by adjusting the top/bottom spacing. You can define the top spacing for mobile for the image on the left(e.g. change 90 as 50)
Regards!
SeaTheme – FAQs – WordPress Customization – Facebook -
AuthorPosts
- You must be logged in to reply to this topic.
