Forums Forums Search & Filter Pro Taxonomy problem and Reset Filters

Tagged: ,

Viewing 5 posts - 41 through 45 (of 45 total)
  • Ross Moderator
    #135027

    So, we now know that plugin, stops injecting the layout when there are not results found (breaking default WP conventions on which template should be shown when there are no results).

    So I thought I would go about it a different way, and it looks like (locally at least) its working fine, please follow:

    1) In the CPT layout injector settings, disable the templates you have assigned to the archives – so archive template is set to -- none --. [THIS IS IMPORTANT]

    2) We will have to create all these archives manually, for now we will do erasmus trips milan archive.. so start by creating a new file archive-erasmus_trips_milan.php in the child theme – inline with the WP way of customising archives

    3) the contents of this file should simply be:

    <?php get_header(); ?>
    <div id="main-content">
    <?php echo do_shortcode('[et_pb_section global_module="16841"][/et_pb_section]');?>
    </div> <!-- #main-content -->
    <?php get_footer(); ?>

    Notice the ID of the layout is being used from divi library: 16841 – which is the archive layout for erasmus trips milan

    4) Thats it! Test https://www.erasmuspeople.com/erasmus_trips_milan/?s=afsdfs and notice, it will say “no results” but in the CORRECT template 🙂

    Let me know how you get on, and if the above makes sense! You will need to repeat this for all your archives that have S&F searches on them.

    Best

    Ross Moderator
    #135029
    This reply has been marked as private.
    Anonymous
    #135849

    Hi Ross,
    Thank you very much for your effort and help.
    I’ll try to follow your instructions today and be back soon.
    Great work and support. Thanks again

    Anonymous
    #137506

    Hello Ross,
    we have changed all the templates in the live website and it works, thank you!
    Now can you take a look at the reset bug?
    Thank you again!

    Ross Moderator
    #138514
    This reply has been marked as private.
Viewing 5 posts - 41 through 45 (of 45 total)