Skip Navigation

[Resolved] Toolset WooCommerce Product Template.

This support ticket is created 6 years, 7 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 1 reply, has 2 voices.

Last updated by Luo Yang 6 years, 7 months ago.

Assisted by: Luo Yang.

Author
Posts
#922175

Anonymous
screenshot-www.generate-toolset.dev.cc-2018.07.08-16-35-08.png
screenshot-www.generate-toolset.dev.cc-2018.07.08-16-31-38.png

I’m starting to create and customize a template for Woo Products.

I’ve been following you guide here
https://toolset.com/learn/create-an-ecommerce-wordpress-site/

There are a couple of things I’d like some help with:
1. My theme container is 1400px but for the product pages I’d like to reduce that to 1100px. I’ve set the container width in theme options value to 1100px but it hasn’t change, still 1400px.
2. I’m using Generate Press as the theme. Product Page styles are currently inherited from this theme, but can we override them? Is there a list of CSS classes for WooCommerce? What would we use for the add to cart button.

Many Thanks
Scott

#922328

Dear Scott,

It seems to be a CSS problem, for single prodcut post, there is CSS class name "single-product" in the body tag, so you can setup custom CSS codes to style the content area, for example:

.single-product .site-main{
width:1100px;
}

With the class name ".single-product", you will be able to override your theme settings.

I assume we are talking about the "add to cart" button outputted from shortcode [wpv-woo-buy-or-select], I just tested it in my localhost, there are some CSS class name you can use, for example:
button
product_type_simple
add_to_cart_button
ajax_add_to_cart