You didn’t say what snippets you’ve actually tried, but according to the docs, you can filter loop_shop_columns
like so:
function wpa65503_woo_shop_columns( $columns ) {
return 3;
}
add_filter( 'loop_shop_columns', 'wpa65503_woo_shop_columns' );
tested and working for me with Twenty Eleven theme.
EDIT – this is the particular line in the default content-product.php
template file that makes the above filter work. you could just set it directly if you’re using a custom template file and don’t need it filterable:
// Store column count for displaying the grid
if ( empty( $woocommerce_loop['columns'] ) )
$woocommerce_loop['columns'] = apply_filters( 'loop_shop_columns', 4 );
Related Posts:
- WordPress custom styles in menu page
- Style product detail page with custom CSS in woocommerce
- Overriding WooCommerce CSS? [closed]
- Customize Bootstrap checkboxes
- What is WebKit and how is it related to CSS?
- Is there a color code for transparent in HTML?
- How can I center an absolutely positioned element in a div?
- How to override the properties of a CSS class using another CSS class
- css transition opacity fade background
- Text-decoration: none not working
- Aligning two divs side-by-side
- CSS transition shorthand with multiple properties?
- Is there an opposite CSS pseudo-class to :hover?
- How to center HTML5 Videos?
- Using custom fonts using CSS?
- How can I transition height: 0; to height: auto; using CSS?
- Display Images Inline via CSS
- Why CSS3 Animation is not working?
- Why is my Bootstrap code not working?
- What is the difference between visibility:hidden and display:none?
- Center a position:fixed element
- How to make canvas responsive
- How to change version of .css in WordPress?
- Disable SSL / HTTPS for wordpress
- Forcing reload of editor-style.css
- How can I make the wordpress editor apply the selected template?
- How do I remove specific styles from the parent theme css using the child theme css?
- What CSS rules are introduced to core blocks through wp-block-styles?
- How to combine multiple CSS files and concatenate JavaScripts if WordPress recommends enqueuing them?
- Make the css of the widget overwrite theme css
- Override Theme CSS with CSS from a plugin
- When using https, wordpress doesn’t use https for CSS and JS, and admin doesn’t work. How do I fix this?
- How to load different css file depending on language
- Can the Theme Customizer be used to generate static/cachable CSS, and how?
- Woocommerce include custom stylesheet after woocommerce styling [closed]
- raw code vs wordpress
- How to add an RSS logo to my blogs header?
- plugin style conflicts, how to override? [closed]
- How to style the RSS wordpress?
- Delete mobile menu button [closed]
- Widgets Scripts don’t load – but load when I reload the page
- How does W3 Total Cache Load Images In Stylesheet via CDN? [closed]
- images within style sheet
- IE and WordPress
- How can I use one stylesheet for multiple sub-sites on my multi-site network?
- Child theme stylesheet not always overriding “index”
- Alternate stylesheet only works with absolute address for link?
- Override plugin styles via my custom theme
- How to create an optionally available stylesheet for visually impared users?
- Image getting out of container [closed]
- Clients website shows blank page [closed]
- Why is my child theme style.css not found (404) in the front-end? [closed]
- Images under 1MB are not being compressed
- functions.php – inject inline css from file
- Changing navigation strip color with CSS
- How to Add a Read-only Textbox With Text in it That Has a Button to Copy it?
- How can I make css inline?
- Use Google Fonts and unicodes
- Conditionally print css style in WordPress
- Adding elements to wp_list_pages (within , but before )
- WordPress is not displaying CSS file
- Change class names dynamically added to html elements by wordpress
- How to theme code blocks formatted by the prettify.js embedded with WP-Markdown?
- Page versus post ID specific CSS ID?
- Why doesn’t WP recognize images in posts like other content? [closed]
- How do I override all stylesheets and scripts without a plugin
- Chat window hiding behind Twenty Eleven header
- CSS for the main top menu appears to have stopped working after All-In-One Migration transfer
- Css will not display in webpage, after adding it in style.css in child theme
- Hide Tab Titles from Tabs Block
- Hide product variations at home page
- How to change the WordPress Plugin Watson Assistant Chatbot BOX Size?
- wp_list_pages two columns
- TinyMCE on frontend style not working
- Bootstrap Integtration
- H2 On Blog/Article Page Gets Assigned a Class
- HTML not resizing
- Style not being applied to newly installed themes
- Make Responsive Specific Page in WordPress
- How to get homepage div container of wordpress website to display full width? [duplicate]
- CSS in child theme to replace !important in parent theme
- How would I add this code to a single WordPress page?
- Get plugin to background of page
- WP theme update causes child theme CSS problems
- Wesbite super slow on iphone / very fast on desktop with same connection on wifi
- adding a favicon to site2 – site1/site2/favicon.ico
- WordPress crop image not working [closed]
- disable lightbox in a plugin [closed]
- Which files can be replaced in a child theme?
- How to implement styling of div in the front end using plugin admin meta box settings?
- How do i make a sidebar background color? [closed]
- How to remove audio player styles added by mediaelement.js JavaScript?
- CSS messes up when CACHE is cleared
- Twenty Fourteen Theme – Moving left sidebar to the right
- WordPress doesn’t respect “ver” parameter in styles [closed]
- why does WordPress custom css convert alpha to hex values?
- Image is very blurry
- how to change the colour of this background
- Can I upload my HTML/CSS/Javascript game onto a WordPress page?
- How to add css to wp_head depending on the user role?