Jump to content

Change Code Style Body Color to display widget correctly

Recommended Posts

Hello,

I integrated a widget from the local tourism agency in my website to allow online bookings of our apartment. the widget does not display the month. the widget creator told me this is because " the default background color of the website's body element is set to white. To seamlessly integrate the widget with the website design, we adopt the website's basic styles. These styles can be adjusted directly on the website as needed". 

I did not find a possibility to adjust the background of a code block? Thanks for helping. 

one the picture you can see the widget integrated in someone else's website, it displays the month. on the other picture, you can see a screenshot of the widget integrated in our website - it does not display the month.

thank you!

Angie

 

image001.png

Bildschirmfoto 2024-08-09 um 14.07.08.png

Link to comment
  • Replies 4
  • Views 698
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

5 hours ago, Kapeller said:

I integrated a widget from the local tourism agency...the widget does not display the month. the widget creator told me this is because "the default background color of the website's body element is set to white."

Indeed, the text is set to white text on a white background. Please try adding something like this to the Custom CSS panel:

.mco-overlay-content.wdg-6-mco-widget-booking-styles345 {
  color: black;
}

If this doesn't work, please share details of the code you added and the site URL.

Did this help? Please give feedback by clicking an icon below  ⬇️

Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.

Would you like your customers to be able to mark their favourite products in your Squarespace store?

Link to comment

Hi Paul, thank you so much for your help. The Code of the widget that i included looks like this:

<div class="mco-widget-booking" data-token="bETbFuR9xeChxOWmpM9wIXlNMXieu2uK4F__rW7to1m40" data-id="6"></div>
<script src=https://vermieter.pillerseetal.at/static/widgets/js/widget-booking.js></script>

 

If you helped me to adjust it i would be very grateful.

Thank you!

Link to comment

What do you need help with? I see that the month titles are now visible. 

Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.

Would you like your customers to be able to mark their favourite products in your Squarespace store?

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.