Home › Forums › WoodMart support forum › Child theme overwrites?
Child theme overwrites?
- This topic has 11 replies, 2 voices, and was last updated 1 year ago by
Artem Temos.
-
AuthorPosts
-
December 15, 2023 at 2:40 pm #521974
waynep16ParticipantI want to change
woocommerce/content-product-buttons-on-hover.php
It put this file in my child theme using the same structure and make changes
public_html/wp-content/themes/woodmart-child/woocommerce/content-product-buttons-on-hover.php
but all the changes I make are not updated. Did I use the correct folder structure?
How can I overwrite “content-product-buttons-on-hover.php” template using the child theme?
December 15, 2023 at 5:18 pm #522037
Artem TemosKeymasterHello,
Try to clear the cache in WooCommerce tools and check if it helps https://monosnap.com/file/CfUfPo2rtNEU2wJKRn8Yf31JvOF9aJ
Kind Regards
December 15, 2023 at 6:15 pm #522059
waynep16ParticipantNo that didn’t do anything, seems when placed in the child theme the file won’t overwrite, can you confirm your end please the correct folder structure to make child theme overwrites work?
December 15, 2023 at 6:18 pm #522060
Artem TemosKeymasterPlease, send us your admin and FTP access so we can check why it doesn’t work on your website.
December 15, 2023 at 6:27 pm #522062
waynep16ParticipantI will give youe cPanel access so you can use file manager because FTP would required Whitelist your IP
Here is the test loop https://ultimatejuice.dev/product-category/e-liquid/50-50-10ml/
Details in private
December 15, 2023 at 6:33 pm #522063
Artem TemosKeymasterPlease, send us your admin access as well.
December 15, 2023 at 6:33 pm #522064
Artem TemosKeymasterAlso, make sure that the child theme is activated in Dashboard -> Appearance -> Themes.
December 15, 2023 at 6:35 pm #522065
waynep16ParticipantYes of course child theme is active we have been working on it for weeks now, we just cant override your code.
Details in private
December 15, 2023 at 7:05 pm #522078
waynep16ParticipantThank you, seems to be working now
December 18, 2023 at 10:48 am #522431
Artem TemosKeymasterGreat, we are glad that you sorted it out! Feel free to contact us if you have any further questions.
Kind Regards
February 14, 2024 at 4:03 pm #540033
waynep16ParticipantI am trying to use child theme to make change to
Brands carousel/grid/list shortcode
/themes/woodmart/inc/shortcodes/brands.php
but when i put this in my child theme it is not doing any changes …..
See demo https://www.loom.com/share/9064967fbb30479b846529ae86e2c2c0
February 14, 2024 at 4:40 pm #540066
Artem TemosKeymasterHello,
You can override only WordPress template files that are located in the root folder of the theme. PHP files from other locations can’t be overridden.
But you can copy PHP functions from those files to the functions.php file in the child theme and make your changes there.Kind Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register