Avada form action
-
I’m using Avada Theme and I need to create a form like this example: http://snag.gy/k5yrv.jpg
Below is the code from the WP Job Manager plugin that can be customised to create the form (although I don’t need the category field, I just need it like the example):
<form method="GET" action="YOUR_JOBS_PAGE_URL"> <p> <label for="keywords">Keywords</label> <input type="text" id="search_keywords" name="search_keywords" /> </p> <p> <label for="keywords">Location</label> <input type="text" id="search_location" name="search_location" /> </p> <p> <label for="search_category">Category</label> <select id="search_category" name="search_category"> <?php foreach ( get_job_listing_categories() as $cat ) : ?> <option value="<?php echo esc_attr( $cat->term_id ); ?>"><?php echo esc_html( $cat->name ); ?></option> <?php endforeach; ?> </select> </p> <p> <input type="submit" value="Search" /> </p> </form>I think if I created a form like the one below, it could make the style of form (with the Avada style button), but I don’t think the action would work to open “YOUR_JOBS_PAGE_URL” with the required selection displayed:
<div class="fusion-one-third one_third fusion-layout-column fusion-spacing-yes">[text keywords placeholder "job title, keywords or company name"]</div> <div class="fusion-one-third one_third fusion-layout-column fusion-spacing-yes">[text location placeholder "city, province or region"]</div> <div class="fusion-one-third one_third fusion-layout-column fusion-spacing-yes fusion-column-last">[submit "Search"]</div>Any ideas anyone please? Thanks
The topic ‘Avada form action’ is closed to new replies.