Misschien handig om te plaatsen :Zoekformulier (searchform.php)
<?php
/**
* Search form shown when the function get_search_form() is called
*/
global $unisphere_options;
?>
<form method=”get” class=”searchform” action=”<?php echo home_url(); ?>”>
<input class=”zoek” name=”s” type=”text” value=”<?php if( isset( $_GET[‘s’] ) ) esc_attr($_GET[‘s’]); ?>” />
<?php if( !empty( $unisphere_options[‘menu_search_products’] ) ) : ?>
<input name=”post_type” type=”hidden” value=”product” />
<?php endif; ?>
<button class=”zoek-btn” type=”submit”><?php _e(‘ZOEK’, ‘unisphere’); ?></button>
</form>
Als je het niet erg vind dat niet alle browsers het nog ondersteunen:
<input type="text" placeholder="Zoek hier uw product" />
Ah Mike dit is me wel gelukt nu… super…. hartstikke bedankt!!!
Nee toch niet gelukt… zie nu dat er een grijs zoekvlak bij komt… links van het zoekvlak waar nu wel de goede tekst inzit verschijnt dus nog zo’n vlak…
Dit staat er nu dus:
<?php
/**
* Search form shown when the function get_search_form() is called
*/
global $unisphere_options;
?>
<form method=”get” class=”searchform” action=”<?php echo home_url(); ?>”>
<input class=”zoek” name=”s” type=”text” value=”<?php if( isset( $_GET[‘s’] ) ) esc_attr($_GET[‘s’]); ?>” />
<?php if( !empty( $unisphere_options[‘menu_search_products’] ) ) : ?>
<input name=”post_type” type=”hidden” value=”product” />
<?php endif; ?>
<button class=”zoek-btn” type=”submit”><?php _e(‘ZOEK’, ‘unisphere’); ?></button>
</form>
Als je tijd hebt Mike… dank je! 😉