WordPress.org

Ready to get started?Download WordPress

Forums

Advanced AJAX Page Loader
[resolved] Search doesn't work?! (3 posts)

  1. Courtney Fantinato
    Member
    Posted 1 year ago #

    I have included the class "searchform" to the <form> element, and there is also an action. I have turned the JavaScript debugging on, and it IS finding my search form.

    <form role="search" id="searchform" class="searchform" method="get" action="'. home_url( '/' ) .'">';

    However, when I search it takes me to '%20)%20.' no matter what I search for. I have tried changing the class name to something else in the theme file and in the AAPL settings, but I get the same thing.

    Any ideas as to why this is happening?

    Thanks!

    http://wordpress.org/extend/plugins/advanced-ajax-page-loader/

  2. Courtney Fantinato
    Member
    Posted 1 year ago #

    Of course, I confused myself. The action should be:

    action="<?php bloginfo('home'); ?>"

    Duh. That's what happens when it's in PHP to begin with and then moved into HTML later, hah.

  3. noflaye
    Member
    Posted 1 year ago #

    Up.
    Same here. As you can see the class for the search form is defined, but when trying to seek, results show on a new page. Any suggestions ?

    <form class="searchform" action="http://192.168.25.2/" onsubmit="this.submit();return false;" method="get">
    <fieldset><input class="searchfield" type="text" placeholder="Search" name="s" value=""></input></fieldset>
    </form>

    Oh. Same issue with the tags ... :/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic