Forums Forums Search & Filter Pro Showing search results

Viewing 10 posts - 1 through 10 (of 12 total)
  • Anonymous
    #185404

    Hi!

    After making a selection in the menu on the left, I want to have my results shown directly at the top of the page (the text above it should not be visible anymore). I’ve tried to establish this with an anchor but it wont work ๐Ÿ™
    What did I do wrong?

    Thanks for your reply!
    Petra

    https://verometal.online-meekijken.nl/nl/ontwerpvrijheid/

    Trevor
    #185435

    The text that starts:

    Architecten, interieurdesigners, vormgevers …

    What about the title? and the breadcrumbs?

    And you want to stay on that page? This means the display of the text needs to be conditional, and that means that you would need to output the text conditionally using PHP (the PHP needs to detect if a search has been made). The safest way to do this is to create the PHP as a shortcode and place the shortcode in to a Visual Composer (Page Builder) Text element.

    This plugin allows you to create a shortcode with PHP in it:

    https://wordpress.org/plugins/php-code-widget/

    The PHP would look something like:

    global $searchandfilter;
    $sf_current_query = $searchandfilter->get(187)->current_query();
    if ((!$sf_current_query->is_filtered())&&($sf_current_query->get_search_term()=="")) {
      echo '<div>Nothing to see here folks!</div>'; 
    } else {
      // your page title, breadcrumbs, text here
    }

    That is the theory of it.

    Anonymous
    #185441

    The text, title en breadcrums can stay on the page but you should automatically scroll down to the results. Now you enter a selection and you go to the top of the page and you have to scroll down to see the results.
    Can you scroll down automatically to the results, is this possible?
    Thanks!!
    Petra

    Trevor
    #185444

    Ah. I understand. What do you have the Scroll Window to setting set to? See here:

    I think it might need setting to Custom with the selector being .vc_grid-container-wrapper

    Anonymous
    #185448

    custom selector: on All

    Inputfield below: #s

    Trevor
    #185452

    Can you make a screenshot of the settings on that section and post me a link to the image?

    Anonymous
    #185460
    Trevor
    #185499

    Where you have #s maybe try as I suggested, .vc_grid-container-wrapper

    Anonymous
    #185515

    didn’t work ๐Ÿ™

    Do you have other suggestions ๐Ÿ™‚

    Trevor
    #185529

    Sadly not, as the control of the page is handled by WPBakery’s plugin.

Viewing 10 posts - 1 through 10 (of 12 total)