372 posts
  • Has been part of the Envato Community for over 5 years
  • Has sold $1,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+1 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
  • Has been part of the Envato Community for over 5 years
  • Has sold $1,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+1 more
mrjasmin says

Someone ?

152 posts
  • Has referred 10+ members
  • Has sold $5,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Located in United Kingdom
+2 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
  • Has been part of the Envato Community for over 5 years
  • Has sold $1,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+1 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
  • Has referred 10+ members
  • Has sold $5,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Located in United Kingdom
+2 more
wppowered says

Looks like a javascript conflict then.

372 posts
  • Has been part of the Envato Community for over 5 years
  • Has sold $1,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+1 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
  • Has referred 10+ members
  • Has sold $5,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Located in United Kingdom
+2 more
wppowered says
152 posts
  • Has referred 10+ members
  • Has sold $5,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Located in United Kingdom
+2 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
  • Has been part of the Envato Community for over 5 years
  • Has sold $1,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+1 more
mrjasmin says
Try that

http://pastie.org/477892

Thanks, it solved the problem…..

152 posts
  • Has referred 10+ members
  • Has sold $5,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Located in United Kingdom
+2 more
wppowered says

Glad to be of help!

by
by
by
by
by
by