Viewing 18 posts - 1 through 18 (of 18 total)
  • Author
    Posts
  • #493560

    Hey, i want to remove the category images on category page.

    #493574

    Hey combra!

    Please add following code to Quick CSS

    .archive .page-thumb {
        display: none !important;
    }

    Cheers!
    Yigit

    #493693

    Thanks, worked! Is it possible to show sorting buttons only if they are real products listed, not only sub categorys?

    #494066

    Hi,

    Can you post the link to on the sub-category listing where you want to hide the shorting buttons?

    Regards,
    Josue

    #503331

    Ok

    #503638

    Hi!

    try this code:

    #top.tax-product_cat .product-sorting {
    display: none;
    }
    

    Best regards,
    Andy

    #504941

    #top.tax-product_cat .product-sorting {
    display: none;
    }

    dosent works, nothing happend. Removed this code again.

    #505207

    Hi!

    I re-added the code and it seems to be working. See private link.

    Cheers!
    Josue

    #506254

    Thanks, but on categorys with products, the sorting should be shown, example on private

    #506694

    Hm, 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!
    Josue

    #508207

    Ok that works for me. Thanks, solved.

    #508217

    You are welcome, glad to help :)

    Regards,
    Josue

    #545705

    Gday 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
    Darryl

    #545823

    Hey!

    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!
    Josue

    #546164

    Gday 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
    Darryl

    #546183

    Hey!

    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,
    Josue

    #546190

    Thanks for your help with this Josue, I’m learning more all the time and appreciate any such pointers.
    cheers
    Darryl

    #546212

    You are welcome Darryl, glad to help :)

    Regards,
    Josue

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