Archived topic
How to change product labels on cart page, how to do it
7 replies · Started by xinghui on October 8, 2022
I want to change the product label of the cart page, how to do it?
This is my image url:https://i.postimg.cc/7hLG3JhD/Change-this-Label.jpg
Hi there,
those labels are hardcoded in the woo templates.
you would need to make a copy of the cart.php in your child theme to make those edits.
Template you need is found here:
https://github.com/woocommerce/woocommerce/blob/trunk/plugins/woocommerce/templates/cart/cart.php
Thanks David, I now have GeneratePress Pro's theme and GenerateBlocks editor installed, but I don't know if there are sub-themes installed, I have the following questions:
1. How to determine if I have installed sub-themes?
2. Also, if I need to install a sub-theme is it a sub-theme that installs GeneratePress?
3. If I install a child theme now, will it affect my website? Will my previous modifications to my website be overwritten by child themes?
Thanks for your Reply!
Go to Appearance > Themes.
If your Active theme is GeneratePress then you do NOT have a child theme installed.
And you will need to install one.
This doc explains how to install it, includes a link to a blank child theme, and a list of fixes you will need to make after installing it:
hi David,thank your reply,i install the child theme,but,The code content of the addtional css is invalid after installing the sub-theme, how to fix it
Hi Xinghui,
You'll need to manually copy any paste the contents of the Additional CSS in the Parent theme to the Child theme.
Temporarily activate the Parent GeneratePress theme. Then, copy your additional CSS in the customizer. Then, activate the Child theme again, and paste the CSS in the Additional CSS.
thank you Fernando,i already solved
You're welcome Xinghui!