I need to have modal forms pop up when clicking a button. In order to use plugins for this, I need to be able to add a class to the anchor tag for a button I created using the avia advanced layout editor. The problem is that the page I created is big and has lots of stuff that I built suing the editor, and I can’t see the source code when I switch to the default editor.
Is there an easy to add my own classes to an anchor tag that’s part of an avia editor element added to a post or page?
Hi,
Can you post the link to your website please (the big page where the button lays)?
Regards,
Josue
Hi pmconsulting
You can turn on the class field for all of the avia elements by adding the following to your functions.php file:
add_theme_support('avia_template_builder_custom_css');
This will allow you to add your own singular class name via a new field at the end of the elements when editing them in the advanced layout editor.
Regards,
Devin
Thanks, Devin! What brilliant forethought!
I love this theme more and more the longer I use it.