WordPress.org

Ready to get started?Download WordPress

Forums

Forever
[resolved] search form not working (6 posts)

  1. bakeologybylisa
    Member
    Posted 4 months ago #

    Hi,

    I'm using the default search bar for the forever theme at bakeologybylisa.com with the swiftype plugin. I also use feedburner to allow people to subscribe for email updates. The problem is, when you type something into the search form and hit enter to search, it redirects to the feedburner form (so when you hit enter, a feedburner confirmation pops up). This is the code in my searchform.php file:

    <form method="get" id="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>">
    		<label for="s" class="assistive-text"><?php _e( ' ', 'forever' ); ?></label>
    		<input type="text" class="field" name="s" id="s" placeholder="<?php esc_attr_e( ' ', 'forever' ); ?>" />
    		<input type="submit" class="submit" name="submit" id="searchsubmit" value="<?php esc_attr_e( ' ', 'forever' ); ?>" />
    	</form>

    This is a problem whether or not the swiftype plugin is installed (and whether or not any plugins are installed, for that matter), and it doesn't happen with other themes. Can anyone help me fix this?

  2. Hi there, I ran a test search on your site like this:

    http://bakeologybylisa.com/?s=test&submit=Search

    And the results page appeared OK.

    Just to be clear, you mentioned that you're using the Swiftype plugin for searching. Is there a search box on the site somewhere so I can have a look?

    Are there any issues with the default search, without using the Swiftype plugin?

  3. bakeologybylisa
    Member
    Posted 4 months ago #

    I know - it's not that the results page doesn't work, it's that the search box doesn't work. It's in the footer of my site. And like I said, the problem is the same whether swiftype is installed or not.

  4. Ah, the footer - I didn't scroll that far, thanks. :-)

    I tested a search widget in the footer on my test site, and it works fine there.

    As a test, can you try removing the Feedburner subscription from your sidebar widget and see if that makes the search issue go away?

    My guess is that there's something interfering in this code - could you give it a try and let me know?

    <form style="border:none #ccc;padding:3px;text-align:left;" action="http://feedburner.google.com/fb/a/mailverify" method="post" target="popupwindow" onsubmit="window.open('http://feedburner.google.com/fb/a/mailverify?uri=bakeologybylisafeed', 'popupwindow', 'scrollbars=yes,width=550,height=520');return true"><p><input type="text" style="width:200px;font-family:'Roboto Slab'" name="email" onblur="if (this.value == '') {this.value = 'enter your email address';}" onfocus="if (this.value == 'enter your email address') {this.value = '';}" value="enter your email address"/>

  5. bakeologybylisa
    Member
    Posted 4 months ago #

    you're right - without the feedburner code, the search form works. can you tell me how to change the code (either the feedburner code or the search form code) to fix this?

  6. Hmm, I'm not sure what's going wrong in the Feedburner form code, but I'd probably suggest just linking to the subscription form as a standalone page instead of using the pop-up form. Feedburner should give you both options in the settings.

Reply

You must log in to post.

About this Theme

About this Topic