Archived topic
Adjust the spacing between product name & price - woocommerce
5 replies · Started by Erling on July 28, 2017
Hope I can get help to increase the distance between heading and price.
I can find the location of Google Tool fix, but can not figure out how to find the place I can fix in theme.
I use childtheme.
Hi Erling,
The easiest way is to add padding to the bottom of the title. This CSS should help:
.woocommerce ul.products li.product h2 {
padding-bottom: 10px !important;
}
Everything went wrong. Now I get this message and can not move on:
( ! ) Parse error: syntax error, unexpected '.', expecting end of file in /app/public/wp-content/themes/generatepress-child/functions.php on line 19
I put it into function php, that's probably a shit.
I work with the site in Local by Flywheel and can not enter.
Fortunately, It lying in Xampp too, so the damage is not that big, but I'll have your help with how to put the code you gave me.
Sorry, my English, I use Google translator.
Hi there,
That code is CSS. Try one of these method: https://docs.generatepress.com/article/adding-css/
Hi David and Leo!
Thank you for your help.
I have now been corrected.
I learn all through life (68 years).
In places of the proposed, which I could not work, I used this:
.woocommerce div.product .product_title {
It works fine. I installed Simple CSS to subsequently discover that there was an "Extra CSS" in the theme. I could probably have used that.
Glad we could help!