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!

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by