Jump to content

Promo Popup: Image background not showing on mobile

Recommended Posts

.sqs-slide-wrapper[data-slide-type="popup-overlay"] .sqs-slide-container[data-slide-type="popup-overlay"].overlay-mobile-styles-enabled .group-copy {
    background: url("IMAGE URL");
}

 

Edited by rwp
Link to comment
4 minutes ago, rwp said:

.sqs-slide-wrapper[data-slide-type="popup-overlay"] .sqs-slide-container[data-slide-type="popup-overlay"].overlay-mobile-styles-enabled .group-copy {
    background: url("IMAGE URL");
}

 

Where do I input this? And I how do I get image URL link for photo? 

Link to comment
3 minutes ago, rwp said:

To add CSS, go to Design -> Custom CSS

I can get you the url, but the pop up needs to be active on your page, and its turned off again.

I thought of another option: adding the image to the gallery slider at the top of the homepage instead of the popup. What do you think? Looks fine on desktop though but not on mobile. 

06.27 midyear sale_web.png

06.27 midyear sale_post-2.png

Screen Shot 2020-06-28 at 11.31.47 AM.png

WhatsApp Image 2020-06-28 at 11.33.45 AM.jpeg

Link to comment
  • 1 year later...
  • 5 months later...
On 4/19/2022 at 1:09 AM, firecrustpizzeria said:

I am having the same issue, unsure of where/how to input any code to get the image to show up on Mobile .

https://www.firecrustpizzeria.com/ 

Try adding to Design > Custom CSS

@media screen and (max-width:767px) {
.sqs-popup-overlay-content .sqs-slide {
    position: fixed !important;
    top: 0 !important;
}
.sqs-slide-wrapper[data-slide-type="popup-overlay"] [data-slice-type="gallery"] .sqs-slice-gallery-item.loaded img {
    opacity: 1 !important;
}
.sqs-slide-wrapper[data-slide-type="popup-overlay"] .sqs-slide-container[data-slide-type="popup-overlay"] [data-slice-type="gallery"] {
    display: block !important;
}
.sqs-slide-wrapper[data-slide-type="popup-overlay"] [data-slice-type="gallery"] {
    z-index: 1000 !important;
}
}

 

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
  • 2 weeks later...
On 4/22/2022 at 3:48 PM, tuanphan said:
@media screen and (max-width:767px) {
.sqs-popup-overlay-content .sqs-slide {
    position: fixed !important;
    top: 0 !important;
}
.sqs-slide-wrapper[data-slide-type="popup-overlay"] [data-slice-type="gallery"] .sqs-slice-gallery-item.loaded img {
    opacity: 1 !important;
}
.sqs-slide-wrapper[data-slide-type="popup-overlay"] .sqs-slide-container[data-slide-type="popup-overlay"] [data-slice-type="gallery"] {
    display: block !important;
}
.sqs-slide-wrapper[data-slide-type="popup-overlay"] [data-slice-type="gallery"] {
    z-index: 1000 !important;
}
}

Hi @tuanphan I'm using the above code - it works to show the image in the mobile promo popup, but now the content (where all the copy is on the right hand side) is cut off, half of it now sits behind the image??

https://jeanine-thompson.squarespace.com/ password: tuansqsp

Link to comment
On 5/4/2022 at 7:17 PM, Iwan said:

Hi @tuanphan I'm using the above code - it works to show the image in the mobile promo popup, but now the content (where all the copy is on the right hand side) is cut off, half of it now sits behind the image??

https://jeanine-thompson.squarespace.com/ password: tuansqsp

What should it look like? Text under image, text overlap image or?

lookl.png.93c2a43c6b3e8a0ac67f9615e9df7218.png

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
  • 10 months later...
On 3/9/2023 at 8:42 AM, hatchingimagination said:

I too have a pop-up and the image is not displayed on the mobile pop-up.

All of the previous requests do not seem to have enough information for me to follow any directions.  I would love to enable to popup to have a pic on mobile.

hairdresserstrong.com

Add this to Design > Custom CSS

/* Promotional popup mobile */
@media screen and (max-width: 767px) {
.sqs-slide-wrapper[data-slide-type="popup-overlay"] .sqs-slide-container[data-slide-type="popup-overlay"].overlay-mobile-styles-enabled .group-copy {
    background: transparent;
}

.sqs-slice-group.group-copy.copy-layer-background * {
    color: white !important
}
.sqs-slide-wrapper[data-slide-type="popup-overlay"] .sqs-slide-container[data-slide-type="popup-overlay"].overlay-mobile-styles-enabled .group-copy {
    background: transparent !important;
}

.sqs-slice-group.group-copy.copy-layer-background * {
    color: white !important
}

.sqs-slide-wrapper[data-slide-type="popup-overlay"] .sqs-slide-container[data-slide-type="popup-overlay"] [data-slice-type="gallery"] {
    display: flex !important
}
}

 

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
  • 2 weeks later...
On 3/11/2023 at 4:39 AM, tuanphan said:
/* Promotional popup mobile */
@media screen and (max-width: 767px) {
.sqs-slide-wrapper[data-slide-type="popup-overlay"] .sqs-slide-container[data-slide-type="popup-overlay"].overlay-mobile-styles-enabled .group-copy {
    background: transparent;
}

@tuanphan I used this CSS, and it worked as described. Looking to edit it further though because we are trying to use the Popup as a lock screen for a private website since the traditional lock screen will not do what we need - which is a simple email verification for access. Too bad we can't use a custom landing page as a lock screen. Or can we?

Website: https://www.atria-advisorloans.com/
Password: ATRIAlendingPORTAL

Is there a way to...

  1. Desktop & Mobile: Disable the click around? We're using the full screen for a reason, and don't want people to bypass it by simply clicking anywhere on the screen.
  2. Mobile: Make the background full screen? See red section/arrow in attached image. 
  3. Mobile: Hide or recolor the "x" and box? See yellow arrows in attached image.

Again, none of this would be an issue if we could lock the entire website with an email verification instead of a single shared PW. Open to other ideas here as well.

  • Member Areas will NOT work because we are already embedding an app that requires login credentials, and we don't want users to have to manage a SQSP Member Profile AND an App profile. That would be silly. 
  • Also, the possible option for SSO is way above my understanding, and we would need to hire someone. That's fine, but don't know where to look, or what a fair market rate would be.

Thank you for any and all of your assistance!

IMG_A7694666A984-1.jpeg

Link to comment
On 3/25/2023 at 4:39 AM, LUDLOW said:

@tuanphan I used this CSS, and it worked as described. Looking to edit it further though because we are trying to use the Popup as a lock screen for a private website since the traditional lock screen will not do what we need - which is a simple email verification for access. Too bad we can't use a custom landing page as a lock screen. Or can we?

Website: https://www.atria-advisorloans.com/
Password: ATRIAlendingPORTAL

Is there a way to...

  1. Desktop & Mobile: Disable the click around? We're using the full screen for a reason, and don't want people to bypass it by simply clicking anywhere on the screen.
  2. Mobile: Make the background full screen? See red section/arrow in attached image. 
  3. Mobile: Hide or recolor the "x" and box? See yellow arrows in attached image.

Again, none of this would be an issue if we could lock the entire website with an email verification instead of a single shared PW. Open to other ideas here as well.

  • Member Areas will NOT work because we are already embedding an app that requires login credentials, and we don't want users to have to manage a SQSP Member Profile AND an App profile. That would be silly. 
  • Also, the possible option for SSO is way above my understanding, and we would need to hire someone. That's fine, but don't know where to look, or what a fair market rate would be.

Thank you for any and all of your assistance!

IMG_A7694666A984-1.jpeg

Sorry for delay. Do you still need help?

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

@tuanphan I was able to solve part of this, but we still need help. By using the CSS at the bottom of this message, I was able to hide the close button "X" and the corresponding auto-populated square around it. For anyone concerned with advertising laws, this is a private site, and we're using the pop-up as a lock screen.

However, we still need assistance on the following:

Website: https://www.atria-advisorloans.com/
Password: ATRIAlendingPORTAL

Is there a way to...

  1. Desktop: Disable the click around? Because it's a private site, we don't want people to bypass our modified lock screen by simply clicking anywhere on the fullscreen pop-up. Alternatively, perhaps the "X" can be designated as the only "close window" function.
  2. Mobile: Make the background fullscreen? Being pinned to the bottom defeats our purposes for this pop-up. See red section/arrow in attached image. 

image.png.ab16d9f0a0b21ee80fcef5475ada0697.png



CSS for hiding the close X and border:

/* popup close X */
.sqs-popup-overlay-close {
opacity: 0 !important;
}

/* popup close X mobile */
.sqs-slide-wrapper[data-slide-type="popup-overlay"] .sqs-slide-container[data-slide-type="popup-overlay"] .sqs-popup-overlay-close:before {
opacity: 0 !important;
}

Link to comment
On 3/31/2023 at 9:56 PM, LUDLOW said:

@tuanphan I was able to solve part of this, but we still need help. By using the CSS at the bottom of this message, I was able to hide the close button "X" and the corresponding auto-populated square around it. For anyone concerned with advertising laws, this is a private site, and we're using the pop-up as a lock screen.

However, we still need assistance on the following:

Website: https://www.atria-advisorloans.com/
Password: ATRIAlendingPORTAL

Is there a way to...

  1. Desktop: Disable the click around? Because it's a private site, we don't want people to bypass our modified lock screen by simply clicking anywhere on the fullscreen pop-up. Alternatively, perhaps the "X" can be designated as the only "close window" function.
  2. Mobile: Make the background fullscreen? Being pinned to the bottom defeats our purposes for this pop-up. See red section/arrow in attached image. 

image.png.ab16d9f0a0b21ee80fcef5475ada0697.png



CSS for hiding the close X and border:

/* popup close X */
.sqs-popup-overlay-close {
opacity: 0 !important;
}

/* popup close X mobile */
.sqs-slide-wrapper[data-slide-type="popup-overlay"] .sqs-slide-container[data-slide-type="popup-overlay"] .sqs-popup-overlay-close:before {
opacity: 0 !important;
}

#1. Seeing

#2. Add to Design > Custom CSS

/* Mobile popup full image */
@media screen and (max-width:767px) {
.sqs-slide-wrapper[data-slide-type="popup-overlay"] [data-slice-type="gallery"] .sqs-slice-gallery-item.loaded img {
    object-fit: contain !important;
}
}

 

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

@tuanphan thanks! It seems off though. Your provided CSS was able to contain the image to the mobile screen width, but not make it fullscreen. See the before and after screenshots attached.

Here is all the CSS that we have used for this Pop Up. Maybe there is a conflict within it? We were first able to use the CSS to add an image. Then we made the close buttons disappear. Now we are trying to make the mobile popup fullscreen. I'm wondering if we had the order incorrect? Or there is a typo somewhere?

/* Promotional popup mobile */
@media screen and (max-width: 767px) {
.sqs-slide-wrapper[data-slide-type="popup-overlay"] .sqs-slide-container[data-slide-type="popup-overlay"].overlay-mobile-styles-enabled .group-copy {
    background: transparent;
}

.sqs-slice-group.group-copy.copy-layer-background * {
    color: white !important
}
.sqs-slide-wrapper[data-slide-type="popup-overlay"] .sqs-slide-container[data-slide-type="popup-overlay"].overlay-mobile-styles-enabled .group-copy {
    background: transparent !important;
}

.sqs-slice-group.group-copy.copy-layer-background * {
    color: white !important
}

.sqs-slide-wrapper[data-slide-type="popup-overlay"] .sqs-slide-container[data-slide-type="popup-overlay"] [data-slice-type="gallery"] {
    display: flex !important
}
}

/* popup close X */
.sqs-popup-overlay-close {
opacity: 0 !important;
}

/* popup close X mobile */
.sqs-slide-wrapper[data-slide-type="popup-overlay"] .sqs-slide-container[data-slide-type="popup-overlay"] .sqs-popup-overlay-close:before {
opacity: 0 !important;
}


/* Mobile popup full image */
@media screen and (max-width:767px) {
.sqs-slide-wrapper[data-slide-type="popup-overlay"] [data-slice-type="gallery"] .sqs-slice-gallery-item.loaded img {
    object-fit: contain !important;
}
}

 

Screenshot 2023-04-05 at 3.20.34 PM.png

Link to comment
On 4/6/2023 at 1:26 AM, LUDLOW said:

@tuanphan thanks! It seems off though. Your provided CSS was able to contain the image to the mobile screen width, but not make it fullscreen. See the before and after screenshots attached.

Here is all the CSS that we have used for this Pop Up. Maybe there is a conflict within it? We were first able to use the CSS to add an image. Then we made the close buttons disappear. Now we are trying to make the mobile popup fullscreen. I'm wondering if we had the order incorrect? Or there is a typo somewhere?

/* Promotional popup mobile */
@media screen and (max-width: 767px) {
.sqs-slide-wrapper[data-slide-type="popup-overlay"] .sqs-slide-container[data-slide-type="popup-overlay"].overlay-mobile-styles-enabled .group-copy {
    background: transparent;
}

.sqs-slice-group.group-copy.copy-layer-background * {
    color: white !important
}
.sqs-slide-wrapper[data-slide-type="popup-overlay"] .sqs-slide-container[data-slide-type="popup-overlay"].overlay-mobile-styles-enabled .group-copy {
    background: transparent !important;
}

.sqs-slice-group.group-copy.copy-layer-background * {
    color: white !important
}

.sqs-slide-wrapper[data-slide-type="popup-overlay"] .sqs-slide-container[data-slide-type="popup-overlay"] [data-slice-type="gallery"] {
    display: flex !important
}
}

/* popup close X */
.sqs-popup-overlay-close {
opacity: 0 !important;
}

/* popup close X mobile */
.sqs-slide-wrapper[data-slide-type="popup-overlay"] .sqs-slide-container[data-slide-type="popup-overlay"] .sqs-popup-overlay-close:before {
opacity: 0 !important;
}


/* Mobile popup full image */
@media screen and (max-width:767px) {
.sqs-slide-wrapper[data-slide-type="popup-overlay"] [data-slice-type="gallery"] .sqs-slice-gallery-item.loaded img {
    object-fit: contain !important;
}
}

 

Screenshot 2023-04-05 at 3.20.34 PM.png

Hey, thank you so much. It worked for me.

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.