Forums Forums Search Search Results for 'results'

Viewing 10 results - 12,371 through 12,380 (of 12,388 total)
  • Author
    Search Results
  • #929

    Ross
    Keymaster

    Hey Ronald

    I made some modifications as an example…

    Now you should go to – http://novoline-merkur.com/search-results/ in search & Filter settings, this is defined by “slug”…

    So, the page that has that the widget embedded, must also use the the same template as the results for AJAX to work properly…

    So, I’ll try to explain a little more :/

    The page with the search widget in the sidebar is:

    http://novoline-merkur.com/search-and-filter/

    This page is using the page.php template.

    Your search results template must be the same (i.e, page.php) for ajax to work from that page (this is because the layout must be the same, so jQuery can match up the content properly)….

    In S&F settings, I changed the custom template to “page.php” so that they match. And guess what? Now Ajax works…. ๐Ÿ™‚

    Now the problem is you probably do not want to use page.php to display your results… but they must match… So either:

    1) Change the template of your page “search-and-filter” to one you would also like to use to display your results, then in S&F settings, change the template filename to match this… (like I just did with page.php)

    or

    2) Do not use the page “search-and-filter”, but instead always link directly to your search results page – http://novoline-merkur.com/search-results/ – then change the template here to one that you would like ๐Ÿ™‚

    Please go ahead and check out – http://novoline-merkur.com/search-results/ – and use the form in the widget area – it works with Ajax ๐Ÿ™‚

    #927

    Anonymous
    Inactive

    Hey Ross,

    im not getting to the point ๐Ÿ˜€
    http://novoline-merkur.com/search-and-filter/

    There is search form included in main content area and search-form widget in page sidebar.
    Both are using main content area to display search results, but i’m not sure how the slug url is used in that case.

    Thank you so much for your help

    #920

    Anonymous
    Inactive

    Hey,

    i’m having same problem aswell. Amin got it working but you haven’t explained how to.
    In my case, the results are showing but when i turn on ajax, content area goes to grey and back.

    Ross you’ve written you’re going to make a video of the solution. Is it already out?

    Best regards from germany

    #912

    Ross
    Keymaster

    Hey Kai

    That sounds strange.. any chance of a link?

    Can you also try using it in a widget to see if you get the same results?

    Thanks

    #822

    Anonymous
    Inactive

    Hello,

    I have a date range field on my form. When I click to pick the first date from the calendar, the form seems to submit before I have chance to select the 2nd date. I get the ‘no results found’ page. I have emailed you a link / logon to this page so you can have a look if needed. I am not using the ‘Ajax’ method, and I just want the results (or ‘nothing found’ message) to show after clicking the ‘submit’ button.

    Thank you ๐Ÿ™‚

    #818

    Anonymous
    Inactive

    Hi,

    I have excluded 3 categories from my search form. This works in that the excluded categories are not shown on the form, but if I type in a keyword from a post in an excluded category, it still shows up in the search results. Is this correct or is there anything else I can do to stop a post from an excluded category appearing in the search results?

    Thank you

    #813

    In reply to: Ajax auto submit


    Anonymous
    Inactive

    Hi Ross

    It was the widget inside the results div, something I should have picked up on to.

    Thanks heaps for your help and the great support, plus the file.

    Cheers

    Tim


    Ross
    Keymaster

    Hey Dmitry not sure what the problem is exactly but for starters, you have the checkbox “use custom template”, but then you don’t have any filename specified…

    Try it with search.php and see if you get some valid results? (I’m sure the layout will be wrong).

    Regardless of this, I’m pretty sure you should be seeing the URL change.

    In some cases when the URL does not change its because WordPress cannot redirect after submitting the form – and this is normally caused by a hidden error in WP, with your theme or your plugins…

    Try installing debug bar and submitting the form, and try to see if there are any errors. If you have any errors, then these will need to be fixed first.

    Let me know the results.

    (Ps seems we are on different time zones, I won’t be back online now until tomorrow).

    #803

    In reply to: Ajax auto submit


    Ross
    Keymaster

    Hey Tim, a couple of bits of good news for you ๐Ÿ™‚

    1) There was a conflict with Custom post type UI – we are both using the same menu position in our plugin, so one will be shown and one will be hidden… I will email you an updated file with this fix..

    2) Your Ajax only working once… I was just setting S&F again on another site and ran in to this exact issue (well its not an issue, just an oversight on my part). Essentially it was the content selector I was using to load results (#content).

    The default setting of #content *seemed* to work ok but I was getting the same problem as you. The problem is the selector is supposed to target your content area only (ie your list of posts/results) – your search widget is not supposed to be inside this selector otherwise there will be problems.

    For my woocommerce setup I changed this to #main and it worked fine – this is because the div with the ID of #main did not include the search widget itself.

    Hope that makes sense? ๐Ÿ™‚

    #795

    Ross
    Keymaster

    Ok this is one I’ve given some thought to…

    Basically.. if a user is using the search form, and then deselects/resets everything – they will expect all the results to be shown – because they haven’t filtered the results by any criteria…

    So changing this in the search form is not recommended.

    I think what you are looking for is a kind of landing page for search – the first time you go on the search page, you will have a custom message with the search form, then the user interacts with the search form and the results begin loading.

    In this case I would recommend the following steps:

    1. Create a new Page where users will begin all their searches.
    2. Make sure this page uses the exact same template as the search results – if you cannot select the page template from the drop down list follow these steps:
      • In your theme folder, duplicate your template and name it something else (by default this is search.php so duplicate search.php and call it search-landing.php.
      • Edit search-landing.php and add this to the top of the file (as per WP Codex here):
        <?php
        /*
        Template Name: My Custom Search Landing Page
        */
        ?>
        
      • Now go back to your page, and you should be able to select a page template called “my custom search landing page” – select this.
      • This will be your landing page – you can modify this template as needed…! You can then perform a search from this page and user will be redirected to the proper search page which will display all (unfiltered) results if desired.

    Let me know how you get on! ๐Ÿ™‚

Viewing 10 results - 12,371 through 12,380 (of 12,388 total)