[Resolved] Is it possible to style a shortcode?

Home Forums Support [Resolved] Is it possible to style a shortcode?

Home Forums Support Is it possible to style a shortcode?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1476122
    Marcel

    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?

    #1476277
    David
    Staff
    Customer Support

    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.

    #1478218
    Marcel

    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

    #1478285
    David
    Staff
    Customer Support

    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

    #1484339
    Marcel

    Thank you!

    #1484590
    David
    Staff
    Customer Support

    You’re welcome

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.