[resolved] Is there a way to style those single Product shortcodes (3 posts)

  1. Martin
    Posted 3 years ago #

    I want to insert single product shortcodes into posts that relate to products I have available i.e content relevant to products.

    I've added a single product shortcode that can be seen at http://www.geekandjock.com/are-women-over-40-still-sexy bit the styling looks real crappy i.e. lots of whitespace, no wrapping blah blah.

    Is there a way to add any styling parameters to the shortcode so maybe the text is to the right of the image, centre it or whatever?

    How are other people inserting single products into content and making them look OK?


  2. James Koster
    Plugin Author

    Posted 3 years ago #


    No there aren't any paramaters to affect the styling of these products. The styling is inherited from the standard product archives. If you'd like to change it you'll need to add some CSS with additional specificity.

    Something like;

    .the-post-container .woocommerce ul.products li.product {
    /* Stuff here */


  3. Martin
    Posted 3 years ago #

    Hey thanks so much for the help. While a bit of a newbie when it comes to CSS, I sorted it out with your helpful pointer and Espresso CSS Editor.

    I did notice from a search that there are some shprtcodes that have an attribute of 'style'but that isn't listed anywhere in any docs that I can officially find.

    Did you know about that?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.