Advertisement
firoze

wordpress search form

Apr 20th, 2015
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. // wordpress search form
  2.  
  3. <form method="get" id="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>">
  4. <label for="s" class="assistive-text"><?php _e( 'Search', 'twentyeleven' ); ?></label>
  5. <input type="text" class="field" name="s" id="s" placeholder="<?php esc_attr_e( 'Search', 'twentyeleven' ); ?>" />
  6. <input type="submit" class="submit" name="submit" id="searchsubmit" value="<?php esc_attr_e( 'Search', 'twentyeleven' ); ?>" />
  7. </form>
  8.  
  9.  
  10.  
  11. OR
  12.  
  13. <?php get_search_form();?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement