Skip to content

Commit

Permalink
Merge pull request woocommerce#17 from mattyza/16-title-function
Browse files Browse the repository at this point in the history
Adds a storefront_title() function.
  • Loading branch information
jameskoster committed Sep 2, 2014
2 parents e9e0f0a + 253b6c7 commit 76c39fb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion header.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?php wp_title( '|', true, 'right' ); ?></title>
<title><?php storefront_title(); ?></title>
<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">

Expand Down
11 changes: 11 additions & 0 deletions inc/structure/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@
* @package storefront
*/

if ( ! function_exists( 'storefront_title' ) ) {
/**
* Wrapper function for displaying the page title, for use with third-party title plugins.
* @since 1.0.0
*/
function storefront_title () {
wp_title( '|', true, 'right' );
} // End storefront_title()
}


if ( ! function_exists( 'storefront_header_widget_region' ) ) {
/**
* Display header widget region
Expand Down

0 comments on commit 76c39fb

Please sign in to comment.