• Resolved HideTheGarlic

    (@hidethegarlic)


    Hi all, I was wondering what I would need to change within my function.php and css to make it so the images of sold items are faded out in the shopping listing?

    Also another thing. My items in the shopping listings show product categories, but they seem to show the first alphabetically. How can I change these to show either the primary category or just remove them from the site all together?

    Any help would be greatly appreciated.

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Stock status is added in the post_class() which generates the classes for products… so assuming your theme hasn’t disabled that for some reason, something like the following CSS rule should make the out of stock products appear faded.

    
    .product.outofstock {
        opacity: .3;
    }
    
    Thread Starter HideTheGarlic

    (@hidethegarlic)

    Perfect Thanks Helga! Worked a charm!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fade Out Sold Items’ is closed to new replies.