When I use a default theme title is correct.
My theme is Extra from Elegant Themes.
I did. They sought a solution in vain. The problem is waiting in their support without a deadline. 😥Â
Do you have any fix?
Hi @adrien,
If the issue comes from the active theme and there are not any deadlines for fixing I'd suggest you try to fix it by yourself.Â
You'll need to open a header.php file of a current active theme and open a header.php file of some other theme (where everything is working fine), compare with each other the codes, so you'll be able to find the problem maker part and fix it manually.Â
Hi, I am a noob in code.
Â
I have this in my Extra theme:
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<?php elegant_description(); ?>
<?php elegant_keywords(); ?>
<?php elegant_canonical(); ?>
<?php do_action( 'et_head_meta' ); ?>
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<?php $template_directory_uri = get_template_directory_uri(); ?>
<!--[if lt IE 9]>
<script src="<?php echo esc_url( $template_directory_uri . '/scripts/ext/html5.js"' ); ?>" type="text/javascript"></script>
<![endif]-->
<script type="text/javascript">
document.documentElement.className = 'js';
</script>
<?php wp_head(); ?>
</head>
Â
I have this on Twenty fifteen theme:
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width">
<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php echo esc_url( get_bloginfo( 'pingback_url' ) ); ?>">
<!--[if lt IE 9]>
<script src="<?php echo esc_url( get_template_directory_uri() ); ?>/js/html5.js"></script>
<![endif]-->
<?php wp_head(); ?>
</head>
Hi @adrien,
Please try to add the following just after the <head> tag:
<title><?php echo wp_get_document_title(); ?></title>
We're not sure if it works. It'd be better if the theme developers will solve the problem.