Archived topic
Is it possible to style a shortcode?
5 replies · Started by Marcel on October 7, 2020
I created a shortcode for a custom field (ACF). I would like to insert it in a GenerateBlock, and the displayed text to be the same as the css classes for H1, H2, H3, etc., depending on what I choose. Is it possible to assign a style for it?
Hi there,
not at this time - dynamic content is something we are looking at in the future.
You would need to add the shortcode using HTML for now.
Hello David,
You said: "You would need to add the shortcode using HTML for now."
May I have any example how could I add the shortcode using HTML?
Any HTML code example would be good for me, I just need to catch the idea.
Thank you!
Marcel
It should be simply like so inside a HTML Block:
<h2>[shortcode]</h2>
You can of course includes some classes et.
<h2 class="custom-heading">[shortcode]</h2>
Let us know if theres anything specific
Thank you!
You're welcome