1) Is it possible to add a class to an <a> tag directly in the editor? I could only get the class on the parent <p> element: https://prnt.sc/1DrS-jWCxmZd
2) More advanced: Is there a way to add data-attributes to <a> tags? Example: <a class="villa-list-item enquire-modal-listing" data-villa="Villa Boma" data-action="Enquire Now" data-location="Listing" target="_self" href="#enquire-now-popup" data-lity=""></a>
Hi I have to do same things. But I want to add by function.php. When i try with this edit as html , it fails and asked to “attempt recovery and effect was gone. I have to use Generatepress blocks and creating a button with custom data id and type in it. Can you please help in this regards ?