@CincyPlanet wrote:
You can do something like this if you use the HTML widget…
Hey thanks CincyPlanet!
That pointed me in the right direction and I got it figured out.
Just in case anyone needs to reference this ever, here is how I did it.
I put HTML widget on the page and declared the following div inside it:
<div id=”output”></div>
then I used the following code in custom.js and it worked great
var output = document.getElementById('output');
var word1
word1 = 'Blue Text'
word1.fontcolor("#0EBFE9") // change color word1 string to blue
var str = 'Sample text in black color' + word1;
output.innerHTML = str;
Thanks guys for posting