-
Ben00
Hi,
I created a global style for a div named ‘box-important’ which in use contains text (a paragraph) that should be highlighted. GB thus creates the CSS class ‘gb-container-box-important’.
To use I have to create a Container, apply the global style on it, and then insert text.
Alternatively I could get rid of the div, style a Paragraph and use the Headline-Element and change it to P.For other authors on the site, I’d prefer to make it more simple. I’d like to use a normal p-Block and give it an additional css class ‘important-text’. I think that’s more natural to use for other users.
I could do that by manually entering ‘gb-container-box-important’ there — but for the client I’d prefer a simpler class name.Can I maybe clone the class ‘gb-container-box-important’ to a new class ‘important-text’ using Javascript?
This way I could still edit the global style WYSIWYG but have a more natural usage in the editor.Thank you!
-
David
Hi there,
what about creating a Local Pattern of a Headline block with the global style already added?
So the client just has to add a pattern ?Let me know
- You must be logged in to reply to this topic.