child theme woocommerce-functions not getting priority #337
-
I want to modify a function in the woocommerce-functions.php file so in my child theme I made a /woocommerce/woocommerce-functions.php and put the override there but it isn't taking affect. I changed mt-2 to mt-5. Since this did not work for me, I modified the bootscore parent theme but I know I'll forget to change it back next time I upgrade. Help please? This is what my woocommerce-functions.php looks like:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
|
Beta Was this translation helpful? Give feedback.
-
-----------------NEVER MIND. IT STARTED WORKING!! MAYBE THE PAGE WAS CACHED?-------------------- OK, since I upgraded to 5.2.3.1, this problem has cropped up again. That tells me I forgot to "undo" my changes to the parent (bootscore-main). Let me quickly restate the problem: I need the breadcrumb section to have a healthy amount of space at the top because my header is taller than the default. Instead of Here's what I have inside of my /bootcommerce-child/functions.php (no longer works):
Inside of /bootscore-main/woocommerce/woocommerce-functions.php, we have almost the same thing except we have mt-2 instead of mt-5:
Now, here is something interesting I see in /bootscore-main/functions.php:
I copied that whole section above into my functions.php and made the What to do now? |
Beta Was this translation helpful? Give feedback.
woocommerce-functions.php
isn‘t a template file and you cannot override it that way. All functions there are pluggable and you can override them by copy the function between theif…
andendif
to your child‘sfunctions.php
. Please check here how to edit functions https://bootscore.me/documentation/functions/.