Home Forums WoodMart support forum Child theme overwrites?

Child theme overwrites?

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #521974

    waynep16
    Participant

    I 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?

    #522037

    Artem Temos
    Keymaster

    Hello,

    Try to clear the cache in WooCommerce tools and check if it helps https://monosnap.com/file/CfUfPo2rtNEU2wJKRn8Yf31JvOF9aJ

    Kind Regards

    #522059

    waynep16
    Participant

    No 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?

    #522060

    Artem Temos
    Keymaster

    Please, send us your admin and FTP access so we can check why it doesn’t work on your website.

    #522062

    waynep16
    Participant

    I 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

    #522063

    Artem Temos
    Keymaster

    Please, send us your admin access as well.

    #522064

    Artem Temos
    Keymaster

    Also, make sure that the child theme is activated in Dashboard -> Appearance -> Themes.

    #522065

    waynep16
    Participant

    Yes of course child theme is active we have been working on it for weeks now, we just cant override your code.

    Details in private

    #522078

    waynep16
    Participant

    Thank you, seems to be working now

    #522431

    Artem Temos
    Keymaster

    Great, we are glad that you sorted it out! Feel free to contact us if you have any further questions.

    Kind Regards

    #540033

    waynep16
    Participant

    I 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

    #540066

    Artem Temos
    Keymaster

    Hello,

    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

Viewing 12 posts - 1 through 12 (of 12 total)