I’m trying to style a particular element that, due to the construction of the plugin that houses it, can only be controlled via its name attribute. According to some web research, the following snippet will get the job done.
var v_obj = document.getElementsByName('Vaccinations');
This snippet needs to appear in my child theme’s head, right? And the best way to do that is via my functions.php, right?
I only need it to run in one or two specific places, identifiable by a page class (e.g. body class=”page-id-80″) or element id (e.g. form id=”form-10-1376150103″).
Any help I could get to make this snippet run successfully would be greatly appreciated. Thanks in advance.