This topic has 6 replies, 2 voices, and was last updated 7 years, 11 months ago ago by Olga Barlow
I’ve been trying to edit text css on Single Product page to no avail esp. for the Product title.
I’ve done this on my child theme css
/*
Theme Name: OTC Xstore
Theme URI: https://www.8theme.com/
Description: XStore Child Theme
Author: 8theme
Author URI: https://www.8theme.com
Template: xstore
Version: 1.0
Text Domain: xstore-child
*/
/* Single Product Page Text */
.product_title {
font-size: 12px !important;
margin-bottom: 0.2em !important;
}
.product-subtitle {
font-size: 1.2em !important;
margin-bottom: 2.2em !important;
color: #666666 !important;
}
Product Subtitle was changed but the Product title i can’t edit the text size.
Can you check my css please?
Link attached on private content.
Thanks
Hello,
You may use Chrome developer tool to find out what styles to edit http://prntscr.com/dfmsrc
More information here https://developer.chrome.com/devtools
So, change the code to following
.single-product-right .product-information-inner .product_title { font-size: 12px !important;}
Regards
Thanks for the reco. Will try that. I’m using Firebug and have had problem getting the right css.
The product-subtitle css is right? I don’t want to mess the site. This product subtitle is from a wp wc subtitle plugin.
Hello,
If you have this class also on other pages and want to change the size for single product page only then you may add additional class single-product, for example
.single-product .product-subtitle {
font-size: 1.2em !important;
margin-bottom: 2.2em !important;
color: #666666 !important;
}
Regards
HI Olga,
I only need this for single product page..
Thanks!
You are welcome!
Regards
Tagged: editing, product, product page, single, text, woocommerce themes, wordpress
You must be logged in to reply to this topic.Log in/Sign up