• This could be simple but I seem to be missing something. I have a theme that needs to add support for WooCommerce product featured images. The following code enables this perfectly in the parent theme’s function.php but of course, it needs to be in the child theme.

    ‘ add_theme_support(‘post-thumbnails’, array(‘post’, ‘product’)); ‘

    There’s nothing else in the child theme functions.php . So I basically have this:
    ‘ <?php
    add_theme_support(‘post-thumbnails’, array(‘post’, ‘product’));
    ?> ‘

    But it doesn’t work. Anyone?

Viewing 1 replies (of 1 total)
  • I had the same issue and managed to solve as follows:

    function setup_theme_support() {
    add_theme_support( ‘post-thumbnails’ );
    }
    add_action(‘after_setup_theme’, ‘setup_theme_support’);

    It basically needs to be called after the parent theme has been loaded, hope it helps.

    Richard

Viewing 1 replies (of 1 total)
  • The topic ‘Child Theme functions.php problem’ is closed to new replies.