Home Forums WoodMart support forum child theme function.php not working

child theme function.php not working

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #382667

    burak
    Participant

    Hello,

    I want to add this code my child theme.

    add_filter( 'woocommerce_get_image_size_gallery_thumbnail', function($size ) {
        return array(
            'width' => 167,
            'height' => 210,
            'crop' => 0,
        );
    }); 

    When I add this to child theme functions.php it’s not working, but when I add this my parent theme, it is working.

    Why is my child theme not running this code ?

    #382672

    Hello,

    Thank you very much for choosing our theme and for contacting us.

    Please try to reinstall the child theme, and check the existing code in functions.php code, if it has errors, it may influence all the code following this wrong code.

    If you have any questions please feel free to contact us.

    Best Regards

    #382673

    burak
    Participant

    thank you for your quick reply but my child theme is ok.

    Attachments:
    You must be logged in to view attached files.
    #382675

    Hello,

    Please insert the site admin access into the Private content below the message area. We will take a closer look at the case.

    Best Regards

    #382676

    burak
    Participant

    hi, I provided the information.

    #382910

    Hello,

    As I see you have solved the issue, right?

    Best Regards

Tagged: 

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