-
Valerrr
Hello, is it possible to change the class of individual elements using GenerateBlocks PRO?
For example
<p class=”gb-text gb-text-ccd9c8ea“>TEXT.</p>
And I want, for example:
<p class=”text-hero“>TEXT.</p>
-
George
Yes, it’s possible using a global style. The only class that will always be there is the
gb-text. This is a base class that GenerateBlocks always adds to identify the block type, and it will always remain even when you use global styles.Currently your example text has this class also appended
gb-text-ccd9c8eabecause you have some local styles applied to it. While you have the text selected, you can enter your newtext-heroclass that you want to start using from the right panel and click Create.
On the next screen, select the Move the local block style. This will move any local styles to the newly created. Then, click the Start Editing button.

Your local styles are now moved to this new global style you are editing. Once you are done, saving the page will also save your global style. The
text-heroglobal style can, of course, be reused for other blocks if needed.If you didn’t have any local styles in the block to begin with, you would start with a blank global style and modify accordingly.
Once you do all that, your text block will only have the
gb-textandtext-heroclasses appended to it.Hope that’s clear!
- You must be logged in to reply to this topic.