Throws Error When Embedding Code
-
Messes with drop down toggle menus in mobile devices. Other devs added snippet to searchform.php in Avada theme and then added that to Child theme. Menu on mobile device stops working on that theme and a few others I tested.
The code they used was as follows
<form role="search" class="searchform" method="get" action="<?php echo esc_url_raw( home_url( '/' ) ); ?>"> <div class="search-table"> <div class="search-field"> <input type="date" value="Y-mm-dd" name="s" class="s" placeholder="<?php esc_html_e( 'YYYY-MM-DD', 'Avada' ); ?>" required aria-required="true" aria-label="<?php esc_html_e( 'YYYY-MM-DD', 'Avada' ); ?>"/> </div> <div class="search-button"> <input type="submit" class="searchsubmit" style="font-size:16px"><i value="" /> </div> </div> </form>
This unfortunately breaks everything. Need to hook it in from functions
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Throws Error When Embedding Code’ is closed to new replies.