Skip to content

Instantly share code, notes, and snippets.

@brianleejackson
Created September 18, 2025 18:48
Show Gist options
  • Select an option

  • Save brianleejackson/7afad048694a7c6feca109c068f98781 to your computer and use it in GitHub Desktop.

Select an option

Save brianleejackson/7afad048694a7c6feca109c068f98781 to your computer and use it in GitHub Desktop.
Move GeneratePress viewport up
add_action('template_redirect', function() {
remove_action('wp_head', 'generate_add_viewport', 1);
add_action( 'wp_head', 'generate_add_viewport', 0);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment