0

I am making a page with Gutenberg but there is a problem that the link does not work within a . This is the code when I inspect:

<figure>
  <a href="...">
  <img>
  </a>
  <figcaption>
  </figcaption>
</figure>

Is there some way that I could nested the figcaption within the a tags so it could be clickable ? I can not modify the code because it is generated by Wordpress.

The expected output:

<figure>
  <a href="...">
  <img>
  <figcaption>
  </figcaption>
  </a>

</figure>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.