styled search imput with span
This commit is contained in:
parent
d05eb07c41
commit
9e65df4df2
|
@ -84,23 +84,22 @@ if( ! function_exists( 'ofisuport_ajuts_filters_form') ) {
|
||||||
</form>
|
</form>
|
||||||
<?php //close the form and subit ?>
|
<?php //close the form and subit ?>
|
||||||
|
|
||||||
<?php }; //end if groupkey ?>
|
<?php }; //end if groupkey ?>
|
||||||
<aside id="search-form-ajuts" class="search-ajuts">
|
<aside id="search-form-ajuts" class="ofisuport-search-ajuts">
|
||||||
<?php
|
<?php
|
||||||
// search form for custom post type 'oficinasuport-ajut'
|
// search form for custom post type 'oficinasuport-ajut'
|
||||||
// <input type="hidden" value="ofisuport-ajut" name="post_type" id="post_type" />
|
// <input type="hidden" value="ofisuport-ajut" name="post_type" id="post_type" />
|
||||||
// https://developer.wordpress.org/reference/functions/get_search_form/#comment-369
|
// https://developer.wordpress.org/reference/functions/get_search_form/#comment-369
|
||||||
// https://wordpress.stackexchange.com/questions/313037/restrict-a-sear ch-to-a-custom-post-type
|
// https://wordpress.stackexchange.com/questions/313037/restrict-a-sear ch-to-a-custom-post-type
|
||||||
?>
|
?>
|
||||||
<form class="search-form" role="search" method="get" action="/">
|
<form class="ofisuport-search-form" role="search" method="get" action="/">
|
||||||
<label class="screen-reader-text" for="search">Search in ajuts</label>
|
<label class="screen-reader-text" for="search">Search in ajuts</label>
|
||||||
<input type="search" id="search" class="search-field" placeholder="cerca ajut..." value="<?php the_search_query(); ?>" name="s" />
|
<input type="search" id="search" class="search-field" placeholder="cerca amb paraula clau..." value="<?php the_search_query(); ?>" name="s" />
|
||||||
<input type="submit" id="searchsubmit" class="search-submit button button-search" value="Enviar">
|
<input type="submit" id="searchsubmit" class="search-submit" value="cerca">
|
||||||
<input type="hidden" value="ofisuport-ajut" name="post_type" id="post_type" />
|
<span class="ofisuport-search-submit ofisuport-icon-search"></span>
|
||||||
</form>
|
<input type="hidden" value="ofisuport-ajut" name="post_type" id="post_type" />
|
||||||
|
</form>
|
||||||
</aside>
|
</aside>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
Loading…
Reference in New Issue