Forum Academy Marketplace Showcase Pricing Features

Can you add Header Tags to Links via HTML header?

A potentially naive question from a newbie plugin developer - I understand how you can use the shared html header to add styling to certain elements. This plugin and this plugin do it to highlight just two examples of many.

What I would like to do is add a “H1” (or “H2”/“H3” tag etc.) to link elements. The bubble editor does not currently allow you to do this and it’s a bit of a negative for SEO.

Anybody have any insight on if/how this might be achievable?

So you want links to be wrapped by these HTML tags?
So <a href>blabla</a> would become <h1><a href>blabla</a></h1>?

If so, you can do that with JS. Several ways to do. Google will be your friend, “how to wrap a tag with another JS” :blush:

1 Like

Thanks for this @vini_brito - sometimes just knowing what to Google is enough to send you in the right direction :slight_smile:

1 Like