Just replace your code with below one:
@media only screen and (max-width: 900px) { .category .sidebar { display: none; } }
if you want to hide in particular one category then use like this:
@media only screen and (max-width: 900px) { .category.*category-slug* .sidebar { display: none; } }
Related Posts:
- Missing sidebar parameter “fix” – before_content
- Styling the second sidebar
- Creating a blog on my companies new website using WordPress but I have sidebar issues
- Creating a mobile site by adding a new class to the body tag from functions.php
- Blog Image and Title in Right Sidebar
- Sidebar doesnt get updated?
- Adding first / last CSS classes to menus
- What’s the best way to use the Featured Image for responsive web design?
- WordPress Admin Bar pushed Sticky Footer off the bottom of the page
- How to change “Shipping Calculator “field label on Cart Page – woocommerce? [closed]
- “wp_enqueue_style();” don’t load new edited style
- functions.php not adding css to website?
- if file_exists not working with wp_enqueue_style
- Using PHP to toggle stylesheet and header image, set in cookie
- Archive dropdown styling not applied
- Different background-image by category
- Add a Different CSS Class Into The Body Tag of Different WP Pages
- Inject PHP code into “sidebar-content” – code before my WooCommerce sidebar widget?
- How Display Posts on category
- Slider loading issue
- Parent theme CSS overriding child CSS rules
- How to style options page in dashboard?
- Theme Options Page – User Updates Logo
- How to use my style.css file outside of wordpress subdomain?
- Dynamic Stylesheet loads but doesn’t finish
- How to add date to navigation bar
- Incorrect MIME type for assets with Valet
- Theme developement – incative sidebars
- Customize position of social icons in upme plugin [closed]
- Css loads very slow [closed]
- How create a Shortcode with hover and complex options
- WordPress Multiple Navigation bars
- Generate sidebar depending on height of post
- Which is the correct way to conditionally enqueue a CSS file?
- Use PHP in stylesheet to specify a background image based on Category ID
- RTL Stylesheet Confusion with WordPress
- WordPress wp_add_inline_style unable to give hex colors?
- Sidebar not appearing in footer, but it appears everywhere else!
- How to create table in wordpress without plugin? [closed]
- What does $_GET[‘iphone’] do?
- Add class to DIV depending on page loaded
- Liking a facebook page from wordpress website?
- trouble with page_id & highlighting current page
- wordpress admin plugin menu custom css
- How to Change CSS Colors from Custom Plugin Settings Page
- Can I set up a hover animation in CSS depending on a PHP conditional?
- Get ACF options field in PHP acting as CSS
- Issue Enqueueing WordPress style.css
- Updating From Mobile App – Exposing Site to Hacking
- Applying CSS on PHP variable [closed]
- Why the dynamic_sidebar() call is putted into an ul tag?
- CSS images don’t show up with bloginfo
- Displaying images outside the content
- How do you remove header sitewide from mobile only?
- how to changes mobile menu toggle breakpoint in WordPress
- Timber right sidebar in WordPress theme
- How to Remove Theme Style CSS inside Custom Plugin?
- Retrieve the whole widget sidebar and pass it inside an html
- Add other class content with reference class value
- PHP function for horizontal Woocommerce thumbnails and badges
- oceanwp+woo mobile cart sidebar text
- Adding Custom css file in the wp-uploads directory with custom php functions
- How to hide a div section when user is logged in, in single product woocommerce
- How do I integrate vanilla Javascript to a wordpress website?
- Can’t display anything through homepage text editor
- Cannot dequeue Elementor Font Awesome css
- How to find and delete a menu item in php?
- How to print all the inline styles in the WP_Styles instance together with their keys?
- Force Sidebar on Full Width page
- The style.php file inside theme-engine folder has other content on FTP
- WordPress Slider is not working
- How to display post meta bellow every posts
- How to let mobile navigation menu close when link is clicked?
- Add Shortcode to ::before class
- Fix hover images blink
- Displaying POST content with HTML tags and all
- How to add Open/Close Toggle button into Twenty Fifteen theme for hiding left sidebar?
- Position a repeated article blocks
- Sidebar widgets are over the content in mobile mode, how can I fix it? [closed]
- How can the searchform.php know if it’s used on a registered sidebar id ‘sidebar-1’ or ‘sidebar-2’?
- Custom Thumbnails [closed]
- Custom Theme, Editor won’t wrap text (i.e. change width)
- if conditional in sidebar plugin Password content shortcode
- Revision History for Entire WordPress Site
- wp add inline style in loop
- Display pages from specific page template
- Listing current pages subp page in list items in the sidebar
- How do I use CSS or PHP to customize WordPress Form Manager Plugin Table?
- How to display different widgets on specific pages, hide from other pages
- How to NOT override inline css rules
- Add CSS class to PHP Statement
- How to add margin underneath woocommerce total price amount -> productpages
- Load files content [closed]
- Load slideshow.css file only if Slideshow is checked / on
- Predefine Magazine Style Layouts
- New to wordpress. Need Help with templates [closed]
- It’s not showing full content for posts pages in wordpress “[…]” while customing some changes in the style.css file [closed]
- Add a “Next Post” & “Previous Post” styled button manually to a post
- Sorting Problem
- How to create different templates for woocommerce single-product.php?