Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1463067

    Hello. Is there any way to move that section to other parts of the page? Or, when I have our filters on at the example page, a way to get the filter dropdowns to go OVER the Sort/Display dropdowns? This seems to be hardcoded to the Enfold theme so basic PHP snippets don’t seem to do anything. Thanks.

    • This topic was modified 2 months, 3 weeks ago by Illingco.
    #1463130

    Hey Illingco,
    To move the shop sorting to the bottom of the page try adding this code to the end of your child theme functions.php file in Appearance ▸ Editor:

    function modify_avia_woocommerce_frontend_search_params_hook() {
        remove_action( 'woocommerce_before_shop_loop', 'avia_woocommerce_frontend_search_params', 20 );
        add_action( 'woocommerce_after_shop_loop', 'avia_woocommerce_frontend_search_params', 20 );
    }
    add_action( 'wp_loaded', 'modify_avia_woocommerce_frontend_search_params_hook' );

    Best regards,
    Mike

    #1463254

    That works, thanks Mike! One other thing, how do I get rid of some of those sort options along with this snippet? Thanks again!

    • This reply was modified 2 months, 2 weeks ago by Illingco.
    #1463275

    Hi,
    Please see this thread.

    Best regards,
    Mike

    #1463373

    When I add the PHP to move sort and display to bottom, it sends my entire sidebar to the bottom of the page as well?

    • This reply was modified 2 months, 2 weeks ago by Illingco.
    • This reply was modified 2 months, 2 weeks ago by Illingco.
    #1463385

    Hi,
    I’m not seeing this on the page that you linked to, is it on a differnt page?

    Best regards,
    Mike

    #1463436

    No I turned the snippet that moves those to the page bottom off for now and wanted to wait for verification that the PHP code supplied works ok. I have activated it and you can see on the linked page. Currently it is running as a Snippet on front end only. Please advise asap, thanks!

    • This reply was modified 2 months, 2 weeks ago by Illingco.
    • This reply was modified 2 months, 2 weeks ago by Illingco.
    #1463542

    Hi,
    Thanks, I now see the sidebar moved no the last two pages but not the first page that you linked to.
    Do get this error only when both snippets are used, or only when the snippet to move the filter to the bottom?
    If it is only that first snippet, then it is probably the priority number, currently it is “20”
    Enfold Support 6443
    this determines where on the page it will show, you can try different numbers like, 19,18,17 etc, if this doesn’t help then please provide a admin login so we can try.

    Best regards,
    Mike

    #1463560

    I have just used CSS to hide them (copied below). Not even the PHP code to hide them worked without moving the sidebar into the main area and at bottom. What is odd now is that on every page load, the side bar items are squeezed together initially and then spread out to normal size. Seems modifying any Woocommerce Archive/Shop/Category page hooks makes it do that. Any idea why?

    CSS to hide:

    div .product-sorting {
    display: none;
    z-index:99!important;
    }

    • This reply was modified 2 months, 2 weeks ago by Illingco.
    #1463664

    Hi,
    Glad that you have found a workaround, perhaps it is related to your woo filter plugin, when I test the code above on my site it works.

    Best regards,
    Mike

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