Support » Theme: Forever » search form not working

  • Resolved bakeologybylisa

    (@bakeologybylisa)


    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?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Kathryn

    (@zoonini)

    Automattic Happiness Engineer

    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?

    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.

    Moderator Kathryn

    (@zoonini)

    Automattic Happiness Engineer

    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"/>

    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?

    Moderator Kathryn

    (@zoonini)

    Automattic Happiness Engineer

    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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘search form not working’ is closed to new replies.