Title: hide the categories
Last modified: February 3, 2023

---

# hide the categories

 *  [maxiec](https://wordpress.org/support/users/maxiec/)
 * (@maxiec)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/hide-the-categories/)
 * Hello
   the woo product presentation style has 2, one by default and another for
   hovering, the latter has no control over hiding elements such as price or star
   category. My question, how do I hide the categories but don’t leave much space
   with the image?
 * [https://ibb.co/ypHgm41](https://ibb.co/ypHgm41)
 * thank

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Shahin](https://wordpress.org/support/users/skalanter/)
 * (@skalanter)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/hide-the-categories/#post-16442883)
 * Hello [@maxiec](https://wordpress.org/support/users/maxiec/),
 * Please put the CSS below in Customizing > Custom CSS/JS > CSS Code:
 *     ```
       .woocommerce #wrap ul.products li.product .woo-product-info .category {
           display: none !important;
       }
   
       .woocommerce #wrap ul.products li.product .woo-product-info .title {
           margin-top: 12px !important;
       }
       ```
   
 * Please read this link for more information about the CSS/JS code on the customizer:
   [https://docs.oceanwp.org/article/354-add-custom-css-and-js-to-your-website](https://docs.oceanwp.org/article/354-add-custom-css-and-js-to-your-website).
 * **Note:** if you have any cache plugin or server cache(CDN / Browser Cache and
   Cookies and …), you need to clear its cache contents or disable them to see your
   changes. Also, remember to click on the regenerate all assets file and data in
   Elementor > Tools(if you have Elementor).
 * I hope that helps.
    Best Regards
 *  Thread Starter [maxiec](https://wordpress.org/support/users/maxiec/)
 * (@maxiec)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/hide-the-categories/#post-16448545)
 * thanks, it works only in archive page, in elementor using official shortcode 
   of woocommerce it doesn’t work
 *  [Shahin](https://wordpress.org/support/users/skalanter/)
 * (@skalanter)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/hide-the-categories/#post-16450575)
 * Hello [@maxiec](https://wordpress.org/support/users/maxiec/),
 * Please check the shortcode options, perhaps they’ve provided an option to hide/
   show, or other styles. Otherwise, you should write a custom CSS for it; in this
   case please share a live URL from your issue.
 * You can learn how to use Chrome Developer Tools or Firefox Developer Tools to
   help you see and test changes to your CSS:
    [https://developers.google.com/web/tools/chrome-devtools/](https://developers.google.com/web/tools/chrome-devtools/)
   [https://developer.mozilla.org/en-US/docs/Tools](https://developer.mozilla.org/en-US/docs/Tools)
   CSS Tutorial: [https://www.w3schools.com/css/](https://www.w3schools.com/css/)
   For more information about media queries, please read this article: [https://www.w3schools.com/css/css_rwd_mediaqueries.asp](https://www.w3schools.com/css/css_rwd_mediaqueries.asp)
 * Best Regards

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘hide the categories’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/oceanwp/4.1.5/screenshot.png)
 * OceanWP
 * [Support Threads](https://wordpress.org/support/theme/oceanwp/)
 * [Active Topics](https://wordpress.org/support/theme/oceanwp/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/oceanwp/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/oceanwp/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Shahin](https://wordpress.org/support/users/skalanter/)
 * Last activity: [3 years, 3 months ago](https://wordpress.org/support/topic/hide-the-categories/#post-16450575)
 * Status: not resolved