So far unsuccessful at the moment using the below css code in an HTML element in the page or adding into the page’s HTML header, along with the text field’s “ID attribute: gradient-text”
Anyone have a recommendation to try? Thanks.
Cheers
Your right, the CSS code doesn’t render the gradient correctly. Looking into it, I’m guessing your pages or reusables are using the new responsive engine. In which case its a little different, as the HTML code that is generated is generally a lot cleaner and more compliant.
So to confirm it appears for old responsive pages: #gradient-text .content {
background: -webkit-linear-gradient(#eee, #333);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
And for new responsive pages: #gradient-text {
background: -webkit-linear-gradient(#eee, #333);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
Still in both cases, you’ll need to expose the ID and then on the text element you want the gradient add in the ID gradient-textand remember to add the opening and closing style tags e.g. <style> and </style>