Advanced Custom Fields intervening with php SearchForm function
-
Hello Advanced Custom Fields,
I have an issue with my searchform.
In my searchform.php I have the following:<form role=”search” method=”get” class=”search-form” action=”<?php echo home_url( ‘/’ ); ?>”>
<label>
<input type=”search” id=”s” name=”s” value=”” />
</label>
</form>But when the code executes, for some reason two attributes are added to my original code and with these two attributes (in bold) while trying to search for something I get an error, but if I take them out using Google Dev Tools it works fine. Could someone explain why these two attributes are generating and what I can do to take them out?
<form role=”search” method=”get” class=”search-form” action=”https://theprairieclub.com/” data-h5-instanceid=”0″ novalidate=”novalidate“>
It is worth noting that once I disable the Advanced Custom Field plugging my search form works fine and no additional attributes are added. Is there a fix for this?
Roberto
- The topic ‘Advanced Custom Fields intervening with php SearchForm function’ is closed to new replies.