Jump to content

Urgent help needed!! Widget extending outside of page in mobile view

Go to solution Solved by SquareRefresh,

Recommended Posts

Site URL: https://www.mercyuk.org/christmas

I wonder if someone could help me?! We've added a CAF payment widget to our website. It displays fine on a desktop, but in mobile mode, the widget extends outside of the webpage (see picture). I've tested it on several mobiles, and it's always the same.

Here is the widget code I'm using... Is there any way of overriding the DIV style to make it fit within the page??

<div id="CAFDonateWidgetContainer"></div>

<script type="text/javascript"> var caf_BeneficiaryCampaignId=18453; document.write(unescape('%3Cscript id="CAFDonateWidgetLoader_script" src="https://cafdonate.cafonline.org/js/CAF.DonateWidgetLoader_script.js" type="text/javascript"%3E%3C/script%3E')); </script>

Screenshot_20211115-132826.png

Edited by brynatmercy
Link to comment
  • brynatmercy changed the title to Urgent help needed!! Widget extending outside of page in mobile view
  • Solution

Hey @brynatmercy try to add next code in Custom CSS:

@media screen and (max-width: 480px) {
  #CAFDonateWidgetContainer iframe {
   width: 100% !important;
  }
}

 

Edited by SquareRefresh

SquareRefresh, premium plugins & templates that have an elevated feel.

Plugins: Have your site stand out. 
Templates: Our templates are designed with versatility in mind.
Get Freebies: Sometimes things in life are free. Browser our hand selected free plugins.

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.