Skip to content

Instantly share code, notes, and snippets.

@swissspidy
Created November 2, 2022 08:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save swissspidy/8c7b3b873cf1e9ca9a9f05f3551014f0 to your computer and use it in GitHub Desktop.
Save swissspidy/8c7b3b873cf1e9ca9a9f05f3551014f0 to your computer and use it in GitHub Desktop.
Mini-plugin to workaround potential missing document title issues
<?php
/**
* Plugin Name: Web Stories Enable title tag
* Description: If for some reason you're not seeing `<title>` tags for stories.
* Plugin URI: https://wp.stories.google/
* Author: Pascal Birchler, Google
* Author URI: https://opensource.google.com/
* Version: 0.0.1
* License: Apache License 2.0
* License URI: https://www.apache.org/licenses/LICENSE-2.0
*/
add_filter( 'web_stories_enable_document_title', '__return_true' );
@amanauxano
Copy link

Thank You @swissspidy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment