To post a new support question, click the Post New Topic button below.
Current Version: 5.2.4 | Sytist Manual | Common  Issues | Feature Requests

Please log in or Create an account to post or reply to topics.
You will still receive notifications of replies to topics you are part of even if you do not subscribe to new topic emails.

Responsive Hero Image For Mobile

G
4 posts
Thu Oct 10, 24 3:56 AM CST

Hi there, 

I'm currently in the process of redesigning a site using Sytist:

https://www.ianpedlowphotography.com/sept15/

Sytist has been installed in the /sept15/ directory, the site currently uses WordPress for other pages, but I will eventually move Sytist to the root directory (I see there's a FAQ on how to do this) and remove WordPress. 

My main question relates to responsive design, if you could help I'd appreciate it. I have "hero" images at the top of each top level page (see screenshot attached for an example). They don't display well on mobile (being landscape oriented), they are clipped in awkward places. Is there any way (maybe I need a media query?) for this hero section to show a different image on mobile?

As well as that, is there any way to remove the space left (seen on the right of the image on the screenshot) for the scroll bar on the main content of the website on mobile? I've tried some custom css options, but nothing has worked. The headers and footers are full width, but content isn't.

Thanks,

Gareth

Attached Photos

16,819 posts (admin)
Fri Oct 11, 24 4:31 AM CST

The photos in the billboards in the page designer fill the design element so the sides do get cropped on a smaller screen.


You can use a billboard at the top of the page from Design -> Billboards instead and they do keep the ratio. 
Tim Grissett, DIA - PicturesPro.com
My Email Address: info@picturespro.com
G
4 posts
Fri Oct 11, 24 7:46 AM CST

Hi Tim,

Thanks for your response, I've managed to get around this by adding two billboard images, one landscape and one portrait. I've controlled the visibility of either image with a css media query, using the randomly generated id as selector.

For the scroll bar on the right, is there anything that can be done to remove the white space left for the bar? The header and footer appear as full width, but not the main content?

Thanks,

Gareth


16,819 posts (admin)
Fri Oct 11, 24 10:28 AM CST

If you have a horizontal scroll, it is most likely something you have added to the addtional CSS of your theme causing it.

Tim Grissett, DIA - PicturesPro.com
My Email Address: info@picturespro.com
G
4 posts
Fri Oct 11, 24 10:41 AM CST

There's no issue with horizontal scroll. There is a white line (I'm assuming it's the scrollbar gutter) down the entire length of the page on mobile, see screenshot above. 

It's not the end of the world if it's there, but I'd prefer if it wasn't. I've tried scrollbar-gutter settings in css, with no results.

16,819 posts (admin)
Sat Oct 12, 24 5:34 AM CST

This is because of the class that sets the 100VW takes off 9 pixels for the scroll bar to keep from a horizontal scroll. It seems the behavior only on mobile has changed and now it is adding a space. It didn't before the last I messed with that. And doesn't do it on a resized browser on the computer.

You can resolve this by adding this to the additional CSS section of your theme: 


body { overflow-x: clip !important; }

.width100vw { width: 100VW !important; } 

@media (max-width: 800px) {
    .width100vw { width: 100VW !important; } 
}


Tim Grissett, DIA - PicturesPro.com
My Email Address: info@picturespro.com
G
4 posts
Tue Oct 15, 24 5:46 AM CST

Hi Tim,

Sorry for the delay in responding. This worked, thanks for your help!

I've moved Sytist to the root, some of our images are still pointing to the old directory, is there any way to refresh the links for all images?

I've fixed the top level pages by re-uploading these images. I just don't want this to affect any galleries that might be live at the moment.

16,819 posts (admin)
Tue Oct 15, 24 11:27 AM CST

It will only be anything uploaded with the page designer. You can either re-upload the photos as you did, or you would need to make replace changes directly in the database. If you need instructions, let me know.

Tim Grissett, DIA - PicturesPro.com
My Email Address: info@picturespro.com
8 total messages
Please log in or Create an account to post or reply to topics.
This post has been viewed 123 times
Category: Site Design
 
Loading more pages
Loading more pages

Sign up for email promotions.

Your information is safe with us and won't be shared.

Thank you for signing up!

 
©2003 - 2021 Grissett, LLC. All Rights Reserved.

By continuing to browse or by clicking Accept Cookies, you agree to the storing of cookies on your device necessary to provide you with the services available through our website.

    Accept   Privacy & Cookie Policy
Loading More Photos
Scroll To Top
Close Window
Loading
Close