Hello Themeco.
Please I need guidance on how to add class to elements via the theme core files (child theme). I know the normal way of adding class which is via the builders but it’s quite stressful considering that I’ll have to do that all the time.
What I want is a class to be added to for example all Headline Elements, another class to all Text Elements, another for all Image Elements, etc so whenever I select any of the Elements in the builder, the class will be inserted automatically.
For example:
For Headline Elements
<div class="x-text x-text-headline e16-6 mg-3">
<div class="x-text-content-text">
<h2 class="x-text-content-text-primary custom-class-here">
THIS IS AN H2 HEADLINE
</h2>
</div>
</div>
For Text Elements
<div class="x-text e16-5 mg-4 custom-class-here">
<P>"Some texts here"</p>
<P>"More texts here"</p>
</div>
And more elements like images, etc…
Please help me. Thank you!