• Resolved Jax2

    (@jax2)


    I am trying to figure out how I would be able to only show category images for a parent category, while the rest of the categories are simple text links.
    For example, I have a parent category that says “Florida”. I would like this to have an image.

    When a visitor clicks on Florida, there will be a category for each city in Florida. I do not want a large category button with an image, but simple text links.

    Is this possible? Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey there, @jax2! Thanks for contacting us. I’m happy to help you.

    It is not possible to achieve that with a simple CSS code, as the image for categories and subcategories use the same classe. So the code we shared on your other thread would remove all of them.

    ul.products li.product.product-category img {
    display: none !important;
    }

    You could use CSS to add this code to specific pages, instead of the whole website. So, for example, you would add it to the Florida category page, so the categories in that page would not have images. But then you would need to to this for each category page with subcategories, which can be a lot, depending on how many categories you have.

    Another solution is to use custom code. However, as per our support policy, we cannot provide support for customization.

    If you are not comfortable with PHP code, then I suggest you consult a local web developer or find one at Codeable or WooExperts.

    You can also visit the WooCommerce Facebook group or the #developers channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there too.

    Please let us know if there’s anything else we can do to help or if you have any questions.

    Have a wonderful day!

    Thread Starter Jax2

    (@jax2)

    Ok, tyvm

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Only show category images for parent categories, text links for rest?’ is closed to new replies.