372 posts
  • 6 Years of Membership
  • Author Level 3
  • Collector Level 2
  • Exclusive Author
+2 more
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
  • 6 Years of Membership
  • Author Level 3
  • Collector Level 2
  • Exclusive Author
+2 more
mrjasmin
says

Someone ?

152 posts
  • Affiliate Level 2
  • Author Level 4
  • Collector Level 2
  • Weekly Top Seller
+3 more
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
  • 6 Years of Membership
  • Author Level 3
  • Collector Level 2
  • Exclusive Author
+2 more
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
  • Affiliate Level 2
  • Author Level 4
  • Collector Level 2
  • Weekly Top Seller
+3 more
wppowered
says

Looks like a javascript conflict then.

372 posts
  • 6 Years of Membership
  • Author Level 3
  • Collector Level 2
  • Exclusive Author
+2 more
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
  • Affiliate Level 2
  • Author Level 4
  • Collector Level 2
  • Weekly Top Seller
+3 more
wppowered
says
152 posts
  • Affiliate Level 2
  • Author Level 4
  • Collector Level 2
  • Weekly Top Seller
+3 more
wppowered
says

I think i know what it is!

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

372 posts
  • 6 Years of Membership
  • Author Level 3
  • Collector Level 2
  • Exclusive Author
+2 more
mrjasmin
says
Try that

http://pastie.org/477892

Thanks, it solved the problem…..

152 posts
  • Affiliate Level 2
  • Author Level 4
  • Collector Level 2
  • Weekly Top Seller
+3 more
wppowered
says

Glad to be of help!

by
by
by
by
by
by