Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1039980

    Hi team,

    Once again, absolutely love the theme! It’s always been our go to option for most clients on WP unless they have something to do with custom WooCommerce layouts.

    One of our recent clients wanted to showcase their products WITHOUT actually selling them online and in a wink, we decided to go the Enfold route and have built the dev site using the Portfolio Items to create the product category / subcategory and the products. While the site turned out the client’s satisfaction, we’ve come to a dead end with one of the requests – to bring the portfolio sub-category filters to the sidebar and not on the top.

    I’ve been searching through the forums but

    1. Don’t see a recent post – at least nothing on the current build version
    2. Have tried some recommendations and the one that has come closest to a functioning solution is http://docs.designsandcode.com/search-filter/ but it fails to work in hierarchy.

    Please can you suggest if there’s something I’m missing out on? Or what could I try to bring in the sub-category for each of the sub-category pages to the sidebar.

    #1040441

    Hey thotadmin,

    I think that’s possible with javascript/jquery, try adding this code at the bottom of functions.php:

    function move_masonry_heading(){
    ?>
    <script>
     jQuery.noConflict();
     (function($) { 
        jQuery(".single-portfolio #av-masonry-1").find(".av-masonry-sort").appendTo(".sidebar.sidebar_right");
    })(jQuery);
    </script>
    <?php
    }
    
    add_action('wp_footer', 'move_masonry_heading');

    Best regards,
    Nikko

    #1041374

    Hey Nikko,

    Thanks for the inputs. A couple of questions:

    1. I’ve got a child theme – so should this go into the Function.php of the child theme or the parent?
    2. If I’m understanding this correctly, I’ll need to also define the placement with the add_action bit?

    #1041379

    Looks like I got too excited seeing a response and jumped straight to a reaction. So, here’s what I did try immediately after replying:

    1. Updated the child functions.php
    2. Changed the right sidebar to the ‘Default Sidebar’

    The filters disappeared from the top but don’t appear in the right sidebar.

    I’ve also tried moving the query over to the parent theme but the outcome is still the same – the filters disappear from the top but do not appear on the sidebar.

    Pardon my ignorance if I’m missing the obvious in the steps.

    #1043118

    Hi thotadmin,

    I apologize for the late response.
    1. Better if it’s in a child theme so tweaks/modifications wouldn’t be lost during theme update.
    2. I checked further on the solution I gave, however moving it physically doesn’t work, the proper solution would take a lot of time to do, however I think there are 2 options that might help,
    first one is via css, to set the position of masonry sort to absolute and move it across the sidebar (not really a neat solution).
    The 2nd one is to find a masonry plugin that might have that feature.

    Best regards,
    Nikko

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.