• I have a child theme.
    The parent has add_theme_support( 'title-tag' ); in it to get the title from the post.
    But this adds the post title and blog subheadline…I want only the post title…

    Now I thougth about just removing this line and adding <title><?php the_title_attribute(); ?></title> to the header, but since it is a child theme the removed line would always come back if they update the theme.

    Is there an easy way to remove the parents “add_theme_support” like remotely from the childs funtcions.php?

    …I found the “remove_action”-functin but I don’t know how to correctly write it. Since this “add_theme_support” is also used for other things, and I only want it removed for title not for everything

Viewing 1 replies (of 1 total)
  • Have you tried adding something like:

    function remove_title_tag() {
        remove_theme_support( 'title_tag' );
    }
    add_action( 'after_setup_theme', 'remove_title_tag', 11 ); 

    to your child theme’s functions.php file?

Viewing 1 replies (of 1 total)

The topic ‘Remove title for child theme (remove add_theme_support)’ is closed to new replies.