First off, I am still learning Wordpress by building my own theme. Go easy on me.

My search URL displays my sites title. Example: /My%20Site?s=horror

Is there an issue with my searchform.php that is causing this? If its the bloginfo(); then what can I use as a replacement?

<form action="<?php bloginfo('search'); ?>" id="searchform" method="get">
  <input name="s" class="nav-search" type="text" placeholder="Search Videos">

Use <?php echo home_url( '/' ); ?> as the action. 'search' by the way is not a valid bloginfo parameter.

  • Thank you so much for the help :) ill look up home_url(); on the codex for more info. – FlannelBeard Jun 26 '14 at 23:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.