-
AuthorPosts
-
July 26, 2024 at 4:03 pm #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 4 months ago by Illingco.
July 27, 2024 at 9:21 pm #1463130Hey 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,
MikeJuly 29, 2024 at 6:30 pm #1463254That 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 3 months, 3 weeks ago by Illingco.
July 30, 2024 at 1:42 am #1463275Hi,
Please see this thread.Best regards,
MikeJuly 30, 2024 at 9:26 pm #1463373July 31, 2024 at 1:10 am #1463385Hi,
I’m not seeing this on the page that you linked to, is it on a differnt page?Best regards,
MikeJuly 31, 2024 at 3:22 pm #1463436No 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!
August 1, 2024 at 6:18 pm #1463542Hi,
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”
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,
MikeAugust 1, 2024 at 10:08 pm #1463560I 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 3 months, 3 weeks ago by Illingco.
August 2, 2024 at 4:29 pm #1463664 -
AuthorPosts
- You must be logged in to reply to this topic.