• Resolved Above the Circle

    (@above-the-circle)


    Is there a way to disable/remove the subcategory images from the shop page? Each of my categories might have a couple hundred subcategories and I’d just like to list them otherwise it’s quite overwhelming.

    Here is the page showing the subcategories for the parent category “Canon.”
    https://www.tonerisland.com/product-category/canon/

    Thanks

    
    ### WordPress Environment ###
    
    Home URL: https://www.tonerisland.com
    Site URL: https://www.tonerisland.com
    WC Version: 2.6.14
    Log Directory Writable: ?
    WP Version: 4.7.2
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: –
    WP Cron: ?
    Language: en_US
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: ? 5.4.45 - We recommend a minimum PHP version of 5.6. See: How to update your PHP version
    PHP Post Max Size: 64 MB
    PHP Time Limit: 30
    PHP Max Input Vars: 1000
    cURL Version: 7.19.7
    NSS/3.21 Basic ECC
    
    SUHOSIN Installed: –
    MySQL Version: ? 5.5.51 - We recommend a minimum MySQL version of 5.6. See: WordPress Requirements
    Max Upload Size: 64 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 2.6.14
    : 
    woocommerce_sessions: ?
    woocommerce_api_keys: ?
    woocommerce_attribute_taxonomies: ?
    woocommerce_downloadable_product_permissions: ?
    woocommerce_order_items: ?
    woocommerce_order_itemmeta: ?
    woocommerce_tax_rates: ?
    woocommerce_tax_rate_locations: ?
    woocommerce_shipping_zones: ?
    woocommerce_shipping_zone_locations: ?
    woocommerce_shipping_zone_methods: ?
    woocommerce_payment_tokens: ?
    woocommerce_payment_tokenmeta: ?
    
    ### Active Plugins (23) ###
    
    Akismet: by Automattic – 3.2
    Collapsing Categories: by Robert Felty – 2.0.8
    Image Widget: by Modern Tribe
    Inc. – 4.3
    
    Regenerate Thumbnails: by Alex Mills (Viper007Bond) – 2.2.6
    Search By SKU - for Woocommerce: by Matthew Lawson – 0.6.1
    Weaver Show Posts: by wpweaver – 1.3.9
    Fast Secure Contact Form: by Mike Challis
    Ken Carlson – 4.0.49
    
    Smart WooCommerce Search: by Stanislav S - YummyWP – 1.1.1
    Weaver II Theme Extras: by Bruce Wampler – 2.3.1
    Weaver Xtreme Theme Support: by wpweaver – 3.1
    Widget Shortcode: by Hassan Derakhshandeh – 0.3.0
    Woo Category Slider By PluginEver: by PluginEver – 2.0.0
    Woo Product Remover: by Mohammad Farhat – 1.0.0
    Woocommerce CSV Import: by Allaerd Mensonides – 3.3.5
    WooCommerce - Store Exporter: by Visser Labs – 1.8.8
    WOOF - WooCommerce Products Filter: by realmag777 – 1.1.6.1
    WooCommerce Stock Manager: by Vladislav Musílek – 1.1.3
    WooCommerce - Store Toolkit: by Visser Labs – 1.6.9
    WooCommerce: by WooThemes – 2.6.14
    WooDojo: by WooThemes – 1.5.4
    Yoast SEO: by Team Yoast – 4.3
    WP Edit: by Josh Lobe – 4.0
    WP Super Cache: by Automattic – 1.4.9
    
    ### Settings ###
    
    Force SSL: –
    Currency: USD ($)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    
    ### API ###
    
    API Enabled: ?
    
    ### WC Pages ###
    
    Shop Base: #20556 - /shop/
    Cart: #20557 - /cart/
    Checkout: #20558 - /checkout/
    My Account: #20559 - /my-account/
    
    ### Taxonomies ###
    
    Product Types: (lc-71c) ink
    300 page-yieldcyan (lc-71c-ink-300-page-yieldcyan)
    (lc-71m) ink (lc-71m-ink)
    (lc-71m) ink
    300 page-yield,magenta (lc-71m-ink-300-page-yieldmagenta)
    (lc-71y) ink (lc-71y-ink)
    (lc-71y) ink
    300 page-yieldyellow (lc-71y-ink-300-page-yieldyellow)
    1/2''; black/white; 2/pack (12-blackwhite-2pack)
    1/2''; blue/white; 2/pack (12-bluewhite-2pack)
    1/2" lam blk on yellow tape(1/pkg) (26.2 ft.) (12-lam-blk-on-yellow-tape1pkg-26-2-ft)
    3/4" lam white on clear tape(1/pkg) (26.2 ft.) (34-lam-white-on-clear-tape1pkg-26-2-ft)
    3/8''; white/black; 2/pack (38-whiteblack-2pack)
    30k laser imagingdrum hl5450dnhl5470dw/t hl6180dw mfc8710dw (30k-laser-imagingdrum-hl5450dnhl5470dwt-hl6180dw-mfc8710dw)
    blk toner mfc-8710dw mfc-8910d (blk-toner-mfc-8710dw-mfc-8910d)
    blktnr-mfc8000,hl5300series3kpageyld (blktnr-mfc8000hl5300series3kpageyld)
    canon|imagerunner 7055|imagerunner 7065|imagerunner 9065pr|imagerunner 9075pr|gpr32/gpr33 (canonimagerunner-7055imagerunner-7065imagerunner-9065primagerunner-9075prgpr32gpr33)
    canon|lbp-5970|lbp-5975|gpr27 (canonlbp-5970lbp-5975gpr27)
    copystar|cs-180|cs-181|cs-220|cs-221|tk439 (copystarcs-180cs-181cs-220cs-221tk439)
    copystar|cs-205c|cs-255c|fs-c8520|fs-c8525|tk899c (copystarcs-205ccs-255cfs-c8520fs-c8525tk899c)
    copystar|cs-205c|cs-255c|fs-c8520|fs-c8525|tk899k (copystarcs-205ccs-255cfs-c8520fs-c8525tk899k)
    correctable film; black;ax10/112/12m/15/20/33/gx (correctable-film-blackax1011212m152033gx)
    drum-mfc8000,hl5300series20kpageyld (drum-mfc8000hl5300series20kpageyld)
    external (external)
    fax 575 therman ribbon 150 yld (fax-575-therman-ribbon-150-yld)
    grouped (grouped)
    hi-yldblktnr-mfc8000,hl53008kpageyld (hi-yldblktnr-mfc8000hl53008kpageyld)
    high yield black toner cartridhl4150cdn
    4750cdw
    4750cdwt (high-yield-black-toner-cartridhl4150cdn-4750cdw-4750cdwt)
    high yield cyan toner cartridghl4150cdn
    4750cdw
    4750cdwt (high-yield-cyan-toner-cartridghl4150cdn-4750cdw-4750cdwt)
    high yield magenta toner cartrhl4150cdn
    4750cdw
    4750cdwt (high-yield-magenta-toner-cartrhl4150cdn-4750cdw-4750cdwt)
    high yield yellow toner cartrihl4150cdn
    4750cdw
    4750cdwt (high-yield-yellow-toner-cartrihl4150cdn-4750cdw-4750cdwt)
    hl 4200cn fuser unit(yld 100k) (hl-4200cn-fuser-unityld-100k)
    hl2220/30/40/70 hi yield toner2600 yield (hl2220304070-hi-yield-toner2600-yield)
    hl2220/30/40/70 toner1200 yield (hl2220304070-toner1200-yield)
    hl3040cn 3070cw black2200 yield (hl3040cn-3070cw-black2200-yield)
    hl3040cn transfer belt unit (hl3040cn-transfer-belt-unit)
    hl3070cw/mfc9120cn15k drum (all 4 colors) (hl3070cwmfc9120cn15k-drum-all-4-colors)
    hl4150 drum mfc9460cdn 9560cdw9970cdw (hl4150-drum-mfc9460cdn-9560cdw9970cdw)
    konica minolta|cf2002|cf3102|4587401 (konica-minoltacf2002cf31024587401)
    konica minolta|cf2002|cf3102|4587501 (konica-minoltacf2002cf31024587501)
    lbl,3/4 blk / clear (lbl34-blk-clear)
    lbl,3/8 blk / clear (lbl38-blk-clear)
    lbl,bk on we,1/2",flex (lblbk-on-we12flex)
    lbl,bk on we,3/4",flex (lblbk-on-we34flex)
    lc71bk (lc-71bk) ink
    300 pageblack (lc71bk-lc-71bk-ink-300-pageblack)
    mfc 210c,420cn,620cn,3240c (mfc-210c420cn620cn3240c)
    mfc 210c/420cn/620cn/3240cblk ink ctg (hi-yld 900) (mfc-210c420cn620cn3240cblk-ink-ctg-hi-yld-900)
    mfc 210c/420cn/620cn/3240cblk ink ctg (yld 500) (mfc-210c420cn620cn3240cblk-ink-ctg-yld-500)
    mfc 210c/420cn/620cn/3240ccyan ink ctg (yld 400) (mfc-210c420cn620cn3240ccyan-ink-ctg-yld-400)
    mfc 210c/420cn/620cn/3240cyellow ink ctg (yld 400) (mfc-210c420cn620cn3240cyellow-ink-ctg-yld-400)
    simple (simple)
    super high yield xxl yel cart (super-high-yield-xxl-yel-cart)
    variable (variable)
    
    ### Theme ###
    
    Name: Weaver Xtreme
    Version: 3.1.2
    Author URL: //weavertheme.com/about
    Child Theme: ? – If you're modifying WooCommerce on a parent theme you didn't build personally
    then we recommend using a child theme. See: How to create a child theme
    
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: Your theme has a woocommerce.php file
    you will not be able to override the woocommerce/archive-product.php custom template since woocommerce.php has priority over archive-product.php. This is intended to prevent display issues.
    
    Overrides: –
    
    ### Templates ###
    
    thumbnail: 
    medium: 
    medium_large: 
    large: 
    shop_thumbnail: 
    shop_catalog: 
    shop_single: 
    
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support RK a11n

    (@riaanknoetze)

    There’s two way to acomplish that:

    • By using custom CSS: The image will still be loaded, it’s just that you’re hiding them.
    • iBy changing the WooCommerce template files: This is more in-depth coding, but that will prevent the images from being loaded altogether

    For more information on how to override the template files, have a look at https://docs.woocommerce.com/document/template-structure/

    Thread Starter Above the Circle

    (@above-the-circle)

    Can you tell me what custom css to use? Sorry, I have no clue.

    .tax-product_cat ul.products li.product a img {
      display:none
    }
    

    Custom css can be entered at:
    Dashboard > Appearance > Customise > Additional CSS

    Unfortunately the images still flash up momentarily. It would be better for them not to be generated in the first place. To do so, try this snippet in functions.php for your child theme. Tested with Storefront, however your theme may be different.

      remove_action( 'woocommerce_before_subcategory_title', 'woocommerce_subcategory_thumbnail', 10 );
      add_action( 'woocommerce_before_subcategory_title', 'custom_subcategory_thumbnail', 10 );
      function custom_subcategory_thumbnail( $category ) {
        if ( $category->parent == '0' ) {
          woocommerce_subcategory_thumbnail( $category );
        } else {
          // do not show a category image
        }
      }
    
    Thread Starter Above the Circle

    (@above-the-circle)

    Perfect! Thank you so much.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘remove subcategory images’ is closed to new replies.