Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    Try setting the $priority to 11 or 12. So instead of

    add_action( 'after_setup_theme', '_child_theme_remove' );
    // should be:
    add_action( 'after_setup_theme', '_child_theme_remove', 11 );

    Part of the reason it’s not working is because child themes are loaded first. If you set the priority higher than 10 it will remove that feature for you. ??

    Thread Starter ekaitzht

    (@ekaitzht)

    Thanks Jose, I tried that before but it didn’t work.

    Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    Do you have any plugins that could cause that to happen?

    I was able to remove the feature successfully with:

    add_action( 'after_setup_theme', 'remove_support', 12 );
    function remove_support(){
    	remove_theme_support( 'post-thumbnails' );
    }

    Thread Starter ekaitzht

    (@ekaitzht)

    Yes very probably, I am using plugins. How I can discover if I have a conflict with other plugins, because with your code is not fixing the problem.

    Thanks

    Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    Disable all the plugins and reactivate one by one to find out which one causing the issue.

    Thread Starter ekaitzht

    (@ekaitzht)

    May be I am not understanding properly because echo remove_theme_support( ‘post-thumbnails’ ); is returning true but the image is not removing from my post.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘remove_theme_support post-thumbnails’ is closed to new replies.