372 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 5-6 years
  • Sold between 1 000 and 5 000 dollars
  • Sweden
mrjasmin says

Hi ! I´m having a little problem with my wordpress theme. I have a search bar placed in the header and every time i click on the input field the page refreshes. How can i solve this ?

Here is my code:

http://pastie.org/477451

372 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 5-6 years
  • Sold between 1 000 and 5 000 dollars
  • Sweden
mrjasmin says

Someone ?

152 posts
  • Sold between 5 000 and 10 000 dollars
  • United Kingdom
  • Exclusive Author
  • Bought between 10 and 49 items
  • Has been a member for 5-6 years
  • Referred between 10 and 49 users
wppowered says

First of all, are you using a Static Front Page and have you a search.php file in the themes root folder?

372 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 5-6 years
  • Sold between 1 000 and 5 000 dollars
  • Sweden
mrjasmin says
First of all, are you using a Static Front Page and have you a search.php file in the themes root folder?

I´m not using a static front page and I have a search.php file. The search is working if i type in the search fast before the page refreshes.

You can take a look at the theme here: http://www.jasminweb.net/wordpress

152 posts
  • Sold between 5 000 and 10 000 dollars
  • United Kingdom
  • Exclusive Author
  • Bought between 10 and 49 items
  • Has been a member for 5-6 years
  • Referred between 10 and 49 users
wppowered says

Looks like a javascript conflict then.

372 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 5-6 years
  • Sold between 1 000 and 5 000 dollars
  • Sweden
mrjasmin says
Looks like a javascript conflict then.

I think that the problem is with my options page code. When i remove this code than everything is working just fine.

http://pastie.org/477874

152 posts
  • Sold between 5 000 and 10 000 dollars
  • United Kingdom
  • Exclusive Author
  • Bought between 10 and 49 items
  • Has been a member for 5-6 years
  • Referred between 10 and 49 users
wppowered says
152 posts
  • Sold between 5 000 and 10 000 dollars
  • United Kingdom
  • Exclusive Author
  • Bought between 10 and 49 items
  • Has been a member for 5-6 years
  • Referred between 10 and 49 users
wppowered says

I think i know what it is!

In the code you pasted there was a link not closed, try that!

372 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 5-6 years
  • Sold between 1 000 and 5 000 dollars
  • Sweden
mrjasmin says
Try that

http://pastie.org/477892

Thanks, it solved the problem…..

152 posts
  • Sold between 5 000 and 10 000 dollars
  • United Kingdom
  • Exclusive Author
  • Bought between 10 and 49 items
  • Has been a member for 5-6 years
  • Referred between 10 and 49 users
wppowered says

Glad to be of help!

by
by
by
by
by
by