Can I nest a element within tags from default wordpress?
Question
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>
0
block-editor, captions, gallery, links
4 years
2019-03-26T04:21:04-05:00
2019-03-26T04:21:04-05:00 0 Answers
77 views
0
Leave an answer