-
AuthorPosts
-
February 2, 2020 at 3:20 am #1180578
Hello! Whenever Woocommerce refers to cart whether it be “View Cart” or “There are 0 items in your cart” I would like to replace the word cart with suitcase.
Is this doable?
Thanks!
February 4, 2020 at 5:57 am #1181154Hi KeyshaunSmith,
I think you can try the following things, for No products in the cart. it is found in woocommerce > templates > cart > mini-cart.php (line 92):
<p class="woocommerce-mini-cart__empty-message"><?php esc_html_e( 'No products in the cart.', 'woocommerce' ); ?></p>
According to Woocommerce documentation: https://docs.woocommerce.com/document/template-structure/ you will need to override that template.
So in your child theme, create a folder called woocommerce then inside it create another folder called cart then copy mini-cart.php from the plugin to the child theme, then modify it.As for changing the text, this is the only available information in their documentation: https://docs.woocommerce.com/document/change-add-to-cart-button-text/
Hope this helps.Best regards,
NikkoFebruary 6, 2020 at 11:44 pm #1182183What exactly is the “Child theme” mentioned here?
February 7, 2020 at 3:09 am #1182216Hi KeyshaunSmith,
I apologize for missing the information on that part.
You can see the explanation (as well as download the child theme) in the documentation: https://kriesi.at/documentation/enfold/child-theme/Best regards,
NikkoFebruary 11, 2020 at 12:36 am #1183309Hello I have already created A TON of modifications to php and css without this child theme. Is there a way to download the child theme and then transfer my changes and modifications to the child theme?
thanks!
February 11, 2020 at 5:25 am #1183332Hi KeyshaunSmith,
The child theme can be downloaded here: https://kriesi.at/documentation/enfold/child-theme/
Let us know if you need further assistance.Best regards,
NikkoMarch 28, 2020 at 8:19 pm #1198672Hello Nikko!
I have downloaded and installed the child theme. How do I transfer everything from my parent theme to the child?
March 29, 2020 at 7:33 pm #1198925Hi,
Sorry for the late reply, above you wrote that you have a “ton” of modifications, so first move the modifications that are functions or scripts that are in your parent functions.php, you would “move” these to your child theme functions.php
Please don’t just “copy” them over so they are in both files, this will lead to an error.
Then if you have modified any theme files we will want to “copy” them to the child theme with the same structure, so if you modified the “header.php” then copy it to the root of your child theme directory, but if another file is inside of a folder in your parent theme, place it inside of the same directory in your child theme.
It is ok to leave the original file in its original location, you will just be “copying” these files.
Please list the files you have modified because some files will need to be “enqueue” to work correctly.
Then you can copy your custom css to your child theme “style.css”, or you can add your css to your Enfold Theme Options > General Styling > Quick CSS field, both places are safe for updates.Best regards,
MikeApril 5, 2020 at 5:50 pm #1200980There is no way to simply just download the stylesheet, and functions and then upload that file to the child theme? Because to be completely honest I am not sure exactly what changes I have made inside the functions and styles sheet.
I Can easily copy my quick css changes no problem, however the styles sheet and functions I just honestly have absolutely no clue what all I have changed.
April 5, 2020 at 11:22 pm #1201037Hi,
Sorry, you can’t copy your parent theme function to your child theme function because having the same function in two places will cause an error.
If you include admin login in the Private Content area I will take a look for you.Best regards,
MikeApril 6, 2020 at 12:15 am #1201044This reply has been marked as private.April 6, 2020 at 1:24 am #1201051Hi,
Thanks for the login, I see your parent theme is still active, so I can’t move your functions to your child theme right now but I compared your functions.php to a default version and found that everything from line 775 to the end can be moved.
There are no modifications in your header.php, and one modification in your footer.php, so you can copy the footer.php to your child theme.
There was a couple of css rules in your /css/custom.css which I copied to your child theme style.css
So, unless you have some other core file modifications I would say all you need to do is activate the child theme and move everything after line 775 in your parent theme functions.php to your child theme functions.php, you should be good to go.Best regards,
MikeApril 10, 2020 at 8:55 pm #1202748Hello!
I moved these files. Everything looks right on my first glance. However I just want to make sure I did everything properly before I update my theme.
April 11, 2020 at 3:13 pm #1202916Hi,
Thank you for the feedback, I see your child theme is active and your functions.php looks correct and ready to update the parent theme.Best regards,
MikeApril 13, 2020 at 6:53 pm #1203334Hey Mike!
Thanks so much. The only thing I wasn’t able to do was copy the footer.php to the child theme. I don’t see footer.php in the child theme to be able to copy it from the parent theme.
April 13, 2020 at 11:26 pm #1203377Hi,
You didn’t see footer.php in the parent theme?
Best regards,
Jordan ShannonApril 13, 2020 at 11:29 pm #1203379I see it in the parent but not in the child
April 13, 2020 at 11:36 pm #1203384Hi,
Yes, you need to copy the file from the parent to the child and then make your edits.
Best regards,
Jordan ShannonApril 14, 2020 at 2:11 am #1203419Right, I am not sure how to copy the file.
April 14, 2020 at 11:15 am #1203522Hi,
You will need to use your webhost’s “file manager” then you can copy the “footer.php” to your child theme.
In the file manager go to your parent theme “enfold” and click once on the footer.php to select it, then click on the “copy” button, then a popup will allow you to enter the path to your child theme, I assume it’s “enfold-child”, just enter the correct path.
Otherwise, you can use FTP and download the footer.php from your parent theme and then upload to your child theme.Best regards,
Mike -
AuthorPosts
- You must be logged in to reply to this topic.