Remove title for child theme (remove add_theme_support)
-
I have a child theme.
The parent hasadd_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
The topic ‘Remove title for child theme (remove add_theme_support)’ is closed to new replies.