Support » Plugin: Shortcoder — Create Shortcodes for Anything » class wp-image-{id} in image tag doesn’t work

  • Resolved nguyencongtoan



    I create a shortcoder look like this:

    <div class="wp-block-image is-style-default"><figure class="aligncenter size-full"><a href="%%src%%"><img src="%%src%%" alt="%%alt%%" class="wp-image-%%id%%"/></a><figcaption>%%caption%%</figcaption></figure></div>

    The wp-image-{id} class should generate the srcset and sizes attributes for image but it didn’t.

    Please help. What I can do to make wp-image-{id} class work with shortcoder.

    Thank you.

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