i want to delete home title, also main website title on pages and posts. I i set a title for website "blablabla"
and when i crate a posts or pages with name "hello world"
The actual title of that post or page is "hello world | blablabla"
But i want to delete this | blablabla is it possible?
i Found this in theme, how should i modify it?
if ( ! function_exists( 'heatmapthemead_wp_title' ) ): function heatmapthemead_wp_title( $title, $sep ) { global $paged, $page; if ( is_feed() ) return $title; // Add the site name. $title .= get_bloginfo( 'name' ); // Add the site description for the home/front page. $site_description = get_bloginfo( 'description', 'display' ); if ( $site_description && ( is_home() || is_front_page() ) ) $title = "$title $sep $site_description"; // Add a page number if necessary. if ( $paged >= 2 || $page >= 2 ) $title = "$title $sep " . sprintf( __( 'Page %s', 'heatmapthemead' ), max( $paged, $page ) ); return $title; } endif; // heatmapthemead_wp_title add_filter( 'wp_title', 'heatmapthemead_wp_title', 10, 2 );
<title>tag? You can change it using SEO plugins like All in One SEO Pack or Yoast SEO.wp_title()(which will vary depending on what theme and plugins you're using), or you can create a child theme and adjust it there, if plugins aren't affecting it.