Title fixes
This commit is contained in:
parent
6a6a7200ea
commit
a69388ebe3
|
@ -379,3 +379,21 @@ if (function_exists("pll_register_string")) {
|
|||
pll_register_string('feedback','Submit feedback');
|
||||
pll_register_string('about_event','about_event');
|
||||
}
|
||||
|
||||
add_filter( 'wp_title', 'wpdocs_hack_wp_title_for_home' );
|
||||
|
||||
/**
|
||||
* Customize the title for the home page, if one is not set.
|
||||
*
|
||||
* @param string $title The original title.
|
||||
* @return string The title to use.
|
||||
*/
|
||||
function wpdocs_hack_wp_title_for_home( $title )
|
||||
{
|
||||
if ( empty( $title ) && ( is_home() || is_front_page() ) ) {
|
||||
$title = get_bloginfo('name') . ' | ' . get_bloginfo( 'description' );
|
||||
} else {
|
||||
$title = $title . get_bloginfo( 'tagline' );
|
||||
}
|
||||
return $title;
|
||||
}
|
||||
|
|
|
@ -13,9 +13,9 @@
|
|||
|
||||
<meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1.0, maximum-scale=1.0" />
|
||||
<!--<link rel="icon" type="image/png" href="">-->
|
||||
<link rel="shortcut icon" href="<?php echo get_stylesheet_directory_uri(); ?>/favicon.ico" />
|
||||
<link rel="shortcut icon" href="<?php echo get_stylesheet_directory_uri(); ?>/favicon.ico" />
|
||||
|
||||
<title><?php is_front_page() ? (bloginfo('name').e_(' | ').e_('Да споделим свободата')) : wp_title( ' | ', true, 'right' ); ?></title>
|
||||
<title><?php wp_title( ' | ', true, 'right' ) ?></title>
|
||||
|
||||
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo get_stylesheet_uri(); ?>" />
|
||||
|
|
Loading…
Reference in New Issue