Forum Replies Created

Viewing 1 replies (of 1 total)
  • cambridgesca

    (@cambridgesca)

    Seeing as this post is so recent and I’m aiming to achieve the same thing, forgive me for kidnapping the thread.

    I’ve created a child theme to allow for customisation of taxonomies. This is working great.
    I’ve added a enqueue_script into my functions.php in the child theme to call for the JS outlined above:

    // Refresh the search in directory after picking one of the criteria
    
    if ( !is_admin() ) { // instruction to only load if it is not the admin area
       // register your script location, dependencies and version
    	wp_register_script('refresh_script', get_stylesheet_directory_uri() . 'js/refresh.js', array('jquery'), true );
    
       // enqueue the script
       wp_enqueue_script('refresh_script');
    }

    my refresh.js file code is as follows:

    $(".searchandfilter select").change(function() {
       $(".searchandfilter").submit();
    });

    The website I’m trying to implement it on is http://www.cambridgesca.org.uk/ExternalDirectory/searchdirectory/
    Sometimes, when I’m switching between the items on the drop-down list, it looks like there’s some activity on the windows-program-bar (not sure what its official name is!); like there was a pop-up new window trying to come up.

    I would appreciate if you could point me in the right direction to achieving multi-criteria search as demonstrated in the add-on that the OP linked.
    We are a charity, so if we can get away without paying for add-ons, it would be wonderful.

    On a side-note, today (it’s something I’ve been fighting with yesterday), when I’m trying to open/edit refresh.js through FTP, I get error that says Object Expected, 800A138F, Microsoft JScript runtime error.
    I had another look on your pro-version demo site just now, and on the side bar I get the following error:

    Fatal error: Call to undefined function array_replace() in /var/sites/d/demo.designsandcode.com/public_html/searchandfilterpro/wp-content/plugins/search-filter-pro/public/includes/class-search-filter-display-shortcode.php on line 411

    I did an Adobe Flash Player update this morning – can the errors be related to that…?

    Thank you for your time

Viewing 1 replies (of 1 total)