-
AuthorPosts
-
August 26, 2015 at 2:32 pm #493560
Hey, i want to remove the category images on category page.
August 26, 2015 at 3:13 pm #493574Hey combra!
Please add following code to Quick CSS
.archive .page-thumb { display: none !important; }
Cheers!
YigitAugust 26, 2015 at 4:54 pm #493693Thanks, worked! Is it possible to show sorting buttons only if they are real products listed, not only sub categorys?
August 27, 2015 at 12:40 pm #494066Hi,
Can you post the link to on the sub-category listing where you want to hide the shorting buttons?
Regards,
JosueSeptember 15, 2015 at 1:41 pm #503331September 15, 2015 at 7:50 pm #503638Hi!
try this code:
#top.tax-product_cat .product-sorting { display: none; }
Best regards,
AndySeptember 17, 2015 at 4:15 pm #504941#top.tax-product_cat .product-sorting {
display: none;
}dosent works, nothing happend. Removed this code again.
September 18, 2015 at 4:07 am #505207Hi!
I re-added the code and it seems to be working. See private link.
Cheers!
JosueSeptember 21, 2015 at 8:14 am #506254Thanks, but on categorys with products, the sorting should be shown, example on private
September 21, 2015 at 9:30 pm #506694Hm, i see. As there is no differentiating class between category and subcategory you’d need to directly target the top categories by their slug class, something like this will do the trick:
#top.term-verpackungszubehoer .product-sorting, #top.term-systeme .product-sorting, #top.term-paletten .product-sorting, #top.term-lagerausstattung .product-sorting, #top.term-klebebaender-verschliessen .product-sorting, #top.term-kartons-schachteln-boxen .product-sorting, #top.term-fuellen-polstern-schuetzen .product-sorting, #top.term-beutel .product-sorting{ display: none; }
Modify as needed.
Cheers!
JosueSeptember 24, 2015 at 8:55 am #508207Ok that works for me. Thanks, solved.
September 24, 2015 at 9:17 am #508217You are welcome, glad to help :)
Regards,
JosueDecember 2, 2015 at 3:22 am #545705Gday guys
I’m wondering how to remove the same elements as the original post (category images atop category page) using a function rather than a css display property…any ideas?
Here is a screenshot of the element, which Yigit correctly identitied as the archive page-thumb
http://screencast.com/t/PBHjiONvTlC
cheers
DarrylDecember 2, 2015 at 11:47 am #545823Hey!
Try adding this at the very end of your theme / child theme functions.php file:
add_action('init', function() { remove_action( 'woocommerce_before_shop_loop', 'avia_woocommerce_overview_banner_image', 10); });
Cheers!
JosueDecember 2, 2015 at 11:09 pm #546164Gday Josue
I think that is a much better solution than hiding elements with CSS. As you know, the function will remove the html from being output, and assists with page load times and such. It may even be more appropriate from an accessibility/reader device point of view, I suspect these can still read the code even though visually hidden.
Thank you for your fix, I was racking my brain trying to solve it using woocommerce hooks and didn’t realise Enfold had it’s own. Do you have documentation or a reference list of the changes unique to Enfold?
cheers
DarrylDecember 3, 2015 at 1:01 am #546183Hey!
No, there isn’t one right now but checking /config-woocommerce/config.php will get you an idea of what Enfold does with WC.
Best regards,
JosueDecember 3, 2015 at 1:39 am #546190Thanks for your help with this Josue, I’m learning more all the time and appreciate any such pointers.
cheers
DarrylDecember 3, 2015 at 3:17 am #546212You are welcome Darryl, glad to help :)
Regards,
Josue -
AuthorPosts
- You must be logged in to reply to this topic.