Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Edit Text Attributes of Embedded HTML


Question

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

3 answers to this question

Recommended Posts

  • 1

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
  • 0

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
  • 0
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>

 

Greeting, it's BaNgan from BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Youtube Gallery for Squarespace
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

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