• After encountering problems with the static front page at https://micuisine.com/firsttasteofmichigan/ generating an empty title tag, I added the following to functions.php to fix the issue:

    function vryn_restaurant_wp_title( $title, $sep ) {
    		if ( is_feed() ) {
    			return $title;
    		}
    
    		// Add the blog description for the home/front page.
    		$site_description = get_bloginfo( 'description', 'display' );
    		$title .= " $sep $site_description";
    
    		return $title;
    	}
    	add_filter( 'wp_title', 'vryn_restaurant_wp_title', 10, 2 );
  • The topic ‘Correcting Empty Title Tag Issues’ is closed to new replies.