New Landing How can we help? Atelier Hide Image if no image is uploaded

Viewing 8 posts - 1 through 8 (of 8 total)
  • Posted in: Atelier
  • #181803
    freddagg
    Member
    Post count: 20

    Hi, is it possible to hide the images in the Category layouts if no image is uploaded to the product?
    Thanks if you can tell me the best approach here.
    Fred

    #181808
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    Can you please show me what you mean?

    – Kyle

    #181811
    freddagg
    Member
    Post count: 20
    This reply has been marked as private.
    #181814
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Add this to your custom css:

    .products .product figure.product-transition-fade {
      display: none;
    }

    – Kyle

    #181818
    freddagg
    Member
    Post count: 20

    Hi Kyle, thank you.
    But what about our products that do have images? Wont this hide them?

    We only want to remove if no image is set for the product.

    I guess we could use your method if we knew the category ID? Does each woocommerce page spit out the Category name or ID?

    #181822
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Sure use this instead:

    .term-catering .products .product figure.product-transition-fade {
      display: none;
    }
    

    – Kyle

    #181833
    freddagg
    Member
    Post count: 20

    ok, very helpful, thanks Kyle.

    #181835
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    No problem, glad I could help

    – Kyle

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register