Comment button not working – search button interfering?
-
Hello!
I have created a WordPress theme on my own. It is almost finished (just adding some finishing touches) but I have a problem with commenting system. I have used a comments file template I’ve found on this site.
The problem I am experiencing is that when I click “Submit comment” (my blog is in Polish so buttons and links are labelled differentely), I am taken to a search results page. I guess there’s no right way to explain it so you can try it yourself.
Here‘s a link to one of my posts. When you try to comment (feel free to try it; it doesn’t matter whether you provide any e-mail address or nickname), it redirects you to a search results page where you see that there were no results for your search (in Polish).
Perhaps the URL can give you some hint what’s going on. Here’s how the URL looks like when I search for “RSS”:
https://pafell.pl/?s=RSS
And here’s how it looks when I type “RSS” into the comment field and hit “Zapisz”:
https://pafell.pl/?s=wyszukiwarka%3A+Enter&comment=RSS&submit=Zapisz&comment_post_ID=1&_wp_unfiltered_html_comment=8c77b09649&akismet_comment_nonce=344f95d656
As you can see the first part of the URL contains search syntax (the default value of search field is “wyszukiwarka: Enter”).
I am also including my template files for comments.php, searchform.php and search.php.
(as you can see on searchform.php, I have “commented” (disabled) search button. I just wanted visitors to use only Enter key to search, not to display any search button)
Could you tell me what’s wrong with my comment button? ??
- The topic ‘Comment button not working – search button interfering?’ is closed to new replies.