0

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">
</form>

1 Answer 1

1

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

1
  • Thank you so much for the help :) ill look up home_url(); on the codex for more info. Jun 26, 2014 at 23:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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