Forums › Forums › General Questions › Add class to “a href” tag in improved button ?…
-
Add class to “a href” tag in improved button ?…
-
Hi
I want to add a class to the “a href” tag of my improved buttons. Is it simply possible (for example with a hook) with function.php ?…
Thanks
-
Hi @effi10 ! You can copy the improved button block’s render function, tweak it to add your desired classes to the “a href” tag, and apply it to all instances of the improved button block through the render_block hook.
Log in to reply.