Skip to content

Instantly share code, notes, and snippets.

@n8finch
Created September 19, 2016 04:00
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 n8finch/8ffd3b452a28756d25710817da349a4c to your computer and use it in GitHub Desktop.
Save n8finch/8ffd3b452a28756d25710817da349a4c to your computer and use it in GitHub Desktop.
add-base-location-provider-to-wp-head.php
//*Add the base "/" to the head for pretty routing.
add_action( 'wp_head', __NAMESPACE__ . '\add_base_location_provider_to_wp_head' );
function add_base_location_provider_to_wp_head() {
echo '<base href="/">';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment