Jump to content

Edit Text Attributes of Embedded HTML

Recommended Posts

Hi,

I have this block of code that was inserted into my website:

<div id="BambooHR" data-domain="rosanopartners.bamboohr.com" data-version="1.0.0" data-departmentId=""></div><script src="https://rosanopartners.bamboohr.com/js/embed.js" type="text/javascript" async defer></script>

Looking to change the font color, size & typeface to match the existing content on my site. Can anyone help?

Link to comment
  • Replies 3
  • Views 1.6k
  • Created
  • Last Reply

Hello,

Embedded elements and tools are essentially their own miniature "websites", kind of like a mini-cookie-cutter copy of the original page that they came from. Most widgets come packaged with preset styles, scripts, and resources making them ideal for quickly adding elements to websites.

Ideally, you'd be given options on the host website to change the appearance of the widget but this isn't always the case. So, you will be limited to what you can and cannot customize from the Squarespace editor. I've taken a look at the embed and I was able to change the font-color, font-size, and font-family in a very broad manner. Hopefully this provides a nice starting point, if not a complete solution. 

  #BambooHR {
    h1,h2 {
      font-size: 25px;
      color: #fff;
    }
    li {
      font-size: 15px;
      color: #fff;
      font-family: "Helvetica", serif;
    }
  }

You can also use your browsers "inspect" tool to identify, customize, and make changes as well.

Hope this helps!

-Dan

 

Link to comment

Hi Dan,

Thank you for your response. By chance, would you be able to show me where to add the code you provided?

I tried adding it to the beginning (below) but that isn't accurate:

  #BambooHR {
    h1,h2 {
      font-size: 25px;
      color: #fff;
    }
    li {
      font-size: 15px;
      color: #fff;
      font-family: "Helvetica", serif;
    }
  }<div id="BambooHR" data-domain="rosanopartners.bamboohr.com" data-version="1.0.0" data-departmentId=""></div><script src="https://rosanopartners.bamboohr.com/js/embed.js" type="text/javascript" async defer></script>
Link to comment
2 hours ago, SonnyKeam said:

Hi Dan,

Thank you for your response. By chance, would you be able to show me where to add the code you provided?

I tried adding it to the beginning (below) but that isn't accurate:


  #BambooHR {
    h1,h2 {
      font-size: 25px;
      color: #fff;
    }
    li {
      font-size: 15px;
      color: #fff;
      font-family: "Helvetica", serif;
    }
  }<div id="BambooHR" data-domain="rosanopartners.bamboohr.com" data-version="1.0.0" data-departmentId=""></div><script src="https://rosanopartners.bamboohr.com/js/embed.js" type="text/javascript" async defer></script>

try wrap it in style tag

<style>
  #BambooHR {
    h1,h2 {
      font-size: 25px;
      color: #fff;
    }
    li {
      font-size: 15px;
      color: #fff;
      font-family: "Helvetica", serif;
    }
  }
</style>

 

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

Archived

This topic is now archived and is closed to further replies.


×
×
  • 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.