Title: Specify column number
Last modified: September 1, 2017

---

# Specify column number

 *  Resolved [Alexandre Gauvin](https://wordpress.org/support/users/pictogram/)
 * (@pictogram)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/specify-column-number/)
 * Hi,
 * As you can see at [https://alexgauvin.com/capricesdelectables.com/produit/lasagne-au-saumon/](https://alexgauvin.com/capricesdelectables.com/produit/lasagne-au-saumon/),
   at the bottom of the page (Produits similaires), I’m trying to have 4 related
   products that are related by common tags.
 * At best, I would like to have them in 1 row, 4 responsive columns. When I set
   Number to 4 I get 4 products in 1 column. When I enabled the slider the only 
   Number that will change anything is 0 which completely hide the products. Otherwise,
   there’s always 3 product with 1 hidden in the slider.
 * Could you please tell me how to set this correctly ?
    Thanks
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fspecify-column-number%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Contributor [Vagelis](https://wordpress.org/support/users/eboxnet/)
 * (@eboxnet)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/specify-column-number/#post-9461888)
 * Hello, thanks for trying/using Woo Related Products.
    Please take a look on this
   one: [https://wordpress.org/support/topic/number-of-columns-9/](https://wordpress.org/support/topic/number-of-columns-9/)
   Let me know if you still need help and i will get back to you tomorrow.
 * Thank you.
 *  Thread Starter [Alexandre Gauvin](https://wordpress.org/support/users/pictogram/)
 * (@pictogram)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/specify-column-number/#post-9461980)
 * Thanks Eboxnet,
 * It’s not working.
 * I’ve added this to custom.css
 *     ```
       .woocommerce.single-product ul.products li.product,.woocommerce-page.single-product ul.products li.product,.woocommerce.single-product .upsells.products li.product,.woocommerce-page.single-product .upsells.products li.product {
           width:22.05%
       }
       ```
   
 * I’ve added this shortcode where I want it to be
    `[woo-related number='4']`
 * And these in Woo related settings page
    Product to display : 4 Related by : product_tag(
   that is actually working) Slider: Disabled
 * You can have a look at [https://alexgauvin.com/capricesdelectables.com/produit/lasagne-au-saumon/](https://alexgauvin.com/capricesdelectables.com/produit/lasagne-au-saumon/),
   just below AUTRES MENUS DE LA SEMAINE
 * Thanks
 *  Plugin Contributor [Vagelis](https://wordpress.org/support/users/eboxnet/)
 * (@eboxnet)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/specify-column-number/#post-9462065)
 * Hello again, the plugin wont change your theme columns.
 * Let me tell you how this works :
    Products to display setting value will be used
   by the plugin to display related products within your theme,so if your theme 
   uses 3 columns for woocommerce and you set the value of products to display to
   5 you ll get something like this:
 * * * *
    * *
 * Now in the case of shortcode if you use [woo-related number=’3′] the number attribute
   of shortcode will override the products to display value from settings page and
   you ll get:
 * * * *
 * Now to change your themes columns you could use the gist code from the link i
   gave you but not just the CSS you ll need to use the filters as well. ( the PHP
   part of this is more important than the CSS part )
 * Hope its clear enough,
    let me know if you need any more info.
 *  Thread Starter [Alexandre Gauvin](https://wordpress.org/support/users/pictogram/)
 * (@pictogram)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/specify-column-number/#post-9462089)
 * Thanks again,
 * I tried adding the code to function.php. It won’t work.
    I’ve added another module
   just below yours. It displays products nicely with 4 columns. The problem with
   this one is it doesn’t filter with tags.
 * Yours does, and is working correctly. There’s just a styling problem. Where can
   I style the output.
 * I could use the slider, but I would like to have it display 4 products at a time,
   not 3.
 * Thanks
    -  This reply was modified 8 years, 8 months ago by [Alexandre Gauvin](https://wordpress.org/support/users/pictogram/).
 *  Plugin Contributor [Vagelis](https://wordpress.org/support/users/eboxnet/)
 * (@eboxnet)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/specify-column-number/#post-9462958)
 * Hello,
    that’s because the other plugin uses custom styling but Woo Related uses
   your theme’s woocommerce styling.
 * Would it be possible to get an account on the website you build ?
 *  Thread Starter [Alexandre Gauvin](https://wordpress.org/support/users/pictogram/)
 * (@pictogram)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/specify-column-number/#post-9463312)
 * Hi,
 * Thanks for your support.
    Yes I ca give you an access. Where should I send you
   that ?
 *  Plugin Contributor [Vagelis](https://wordpress.org/support/users/eboxnet/)
 * (@eboxnet)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/specify-column-number/#post-9463320)
 * Hello, np.
    send it to info@(myusername).com and i will get into it tomorrow 
   or Monday morning.
 * Thanks
 *  Plugin Contributor [Vagelis](https://wordpress.org/support/users/eboxnet/)
 * (@eboxnet)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/specify-column-number/#post-9469043)
 * I ll mark this as solved as i edited your child theme and styled plugin’s as 
   you needed it to be.
 * Thanks for using Woo Related Products.

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

The topic ‘Specify column number’ is closed to new replies.

 * ![](https://ps.w.org/woo-related-products-refresh-on-reload/assets/icon-256x256.
   png?rev=1531812)
 * [Related Products for WooCommerce](https://wordpress.org/plugins/woo-related-products-refresh-on-reload/)
 * [Support Threads](https://wordpress.org/support/plugin/woo-related-products-refresh-on-reload/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-related-products-refresh-on-reload/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-related-products-refresh-on-reload/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-related-products-refresh-on-reload/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [Vagelis](https://wordpress.org/support/users/eboxnet/)
 * Last activity: [8 years, 8 months ago](https://wordpress.org/support/topic/specify-column-number/#post-9469043)
 * Status: resolved