Skip to content

Commit

Permalink
fixed title tag separator issue
Browse files Browse the repository at this point in the history
  • Loading branch information
BenSibley committed Mar 19, 2015
1 parent c6e9408 commit 1684636
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
2 changes: 2 additions & 0 deletions gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,12 @@ module.exports = function(grunt) {
compress: {
main: {
options: {
mode: 'zip',
archive: '/Users/bensibley/Desktop/ignite.zip'
},
files: [
{
expand: true,
src: ['**', '!node_modules/**','!sass/**', '!gruntfile.js', '!package.json', '!style-prefixed.css','!/.git/','!/.idea/','!/.sass-cache/','!**.DS_Store'],
filter: 'isFile'
}
Expand Down
14 changes: 3 additions & 11 deletions library/functions/head.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,6 @@ function hybrid_meta_charset() {
printf( '<meta charset="%s" />' . "\n", get_bloginfo( 'charset' ) );
}

/**
* Adds the title to the header.
*
* @since 2.0.0
* @access public
* @return void
*/
//function hybrid_doctitle() {
// printf( "<title>%s</title>\n", wp_title( ':', false ) );
//}

/**
* Adds the meta viewport to the header.
*
Expand Down Expand Up @@ -92,6 +81,9 @@ function hybrid_link_pingback() {
*/
function hybrid_wp_title( $doctitle, $separator, $seplocation ) {

/* Custom separator for backwards compatibility. */
$separator = ':';

if ( is_front_page() )
$doctitle = get_bloginfo( 'name' ) . $separator . ' ' . get_bloginfo( 'description' );

Expand Down

0 comments on commit 1684636

Please sign in to comment.