Title: Display product shortcode
Last modified: July 18, 2022

---

# Display product shortcode

 *  Resolved [meijin2k](https://wordpress.org/support/users/meijin2k/)
 * (@meijin2k)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/display-product-shortcode/)
 * Is there a way to center the results of the show product shortcode in a post 
   instead of having it left justified?
 * `[show_products product="xxx"]`
 * It works, but I would like to have it centered on the page. I did a quick search
   through the topics here and did not find anything.
 * Thanks.

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

 *  Plugin Author [ndre](https://wordpress.org/support/users/ndre/)
 * (@ndre)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/display-product-shortcode/#post-15845486)
 * Hi [@meijin2k](https://wordpress.org/support/users/meijin2k/),
 * If your theme doesn’t have such an option, it will require custom CSS.
 * Would you please provide a URL so I can help?
 *  Thread Starter [meijin2k](https://wordpress.org/support/users/meijin2k/)
 * (@meijin2k)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/display-product-shortcode/#post-15847607)
 * Thanks for the response.
 * You can find the link here to check out:
 * [Link to page](https://kodawaridojo.com/test-post-10/)
    -  This reply was modified 3 years, 10 months ago by [meijin2k](https://wordpress.org/support/users/meijin2k/).
 *  Plugin Author [ndre](https://wordpress.org/support/users/ndre/)
 * (@ndre)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/display-product-shortcode/#post-15848934)
 * Hi [@meijin2k](https://wordpress.org/support/users/meijin2k/),
 * Thank you for the URL. Would you please set it to show only one item per row?
 *  Thread Starter [meijin2k](https://wordpress.org/support/users/meijin2k/)
 * (@meijin2k)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/display-product-shortcode/#post-15850200)
 * So I added the per_row=1 parameter to the shortcode and that made the single 
   product show as wide as the page….which is too large. I liked the small size 
   it showed without the parameter (but left justified).
 * So in looking at your docs, it seemed like this should have done the trick (put
   it in the additional CSS section)?
 *     ```
       .per-row-1 .modern-grid-element {
       max-width: 400px;
       margin: 1% auto;
       float: none;
       }
       ```
   
 * That got me more to the size that would work, but now it is right justified and
   cuts off the right side edge of the product box.
 * So I am obviously getting something wrong, just not sure what. But it is very
   close now.
 * Thank you for the help.
 *  Plugin Author [ndre](https://wordpress.org/support/users/ndre/)
 * (@ndre)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/display-product-shortcode/#post-15850233)
 * Hi [@meijin2k](https://wordpress.org/support/users/meijin2k/),
 * Yes, you got it right, but there is another CSS that still overrides your custom
   CSS. Please add the following instead:
 *     ```
       .product-list.per-row-1 .modern-grid-element {
           max-width: 400px;
           margin: 1% auto;
           float: none;
       }
       ```
   
 *  Thread Starter [meijin2k](https://wordpress.org/support/users/meijin2k/)
 * (@meijin2k)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/display-product-shortcode/#post-15850285)
 * Bingo! Thank you! That did the trick!

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

The topic ‘Display product shortcode’ is closed to new replies.

 * ![](https://ps.w.org/ecommerce-product-catalog/assets/icon-128x128.png?rev=1103243)
 * [eCommerce Product Catalog Plugin for WordPress](https://wordpress.org/plugins/ecommerce-product-catalog/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ecommerce-product-catalog/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ecommerce-product-catalog/)
 * [Active Topics](https://wordpress.org/support/plugin/ecommerce-product-catalog/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ecommerce-product-catalog/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ecommerce-product-catalog/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [meijin2k](https://wordpress.org/support/users/meijin2k/)
 * Last activity: [3 years, 10 months ago](https://wordpress.org/support/topic/display-product-shortcode/#post-15850285)
 * Status: resolved