WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Martin
    Member
    Posted 8 months 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?

    http://wordpress.org/plugins/woocommerce/

  2. jameskoster
    Member
    Plugin Author

    Posted 8 months ago #

    Hi,

    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 */
    }

    Thanks

  3. Martin
    Member
    Posted 8 months 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?

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.