Duplicate Site Titles Since Ver 1.4.19
-
Hi guys,
I noticed that after the 1.4.19 update that all of my site titles became duplicated.
So where as I have my titles set to:
%%title%% | %%sitename%%
I now actually get:
%%title%% | %%sitename%%%%sitename%%
when viewing the meta title in a browser.
I’ve seen a few other forum posts with similar problems, but looking at the changes made in the 1.4.19 update, I can’t figure out what has changed.
1.4.18 works just fine, but the update and ALL subsequent updates upto 1.4.24 still breaks the normal behaviour.
My theme should detect whether YOAST WPSEO is installed and then only use the simple WP title tag as needed by the plugin.
The code in my header looks like this:
<?php /** * Infinity Theme: Header-Head * * All the stuff that's needed for the <head> section of * a WordPress Theme * * @author Bowe Frankema <[email protected]> * @link https://infinity.presscrew.com/ * @copyright Copyright (C) 2010-2011 Bowe Frankema * @license https://www.gnu.org/licenses/gpl.html GPLv2 or later * @package Infinity * @subpackage templates * @since 1.0 */ ?> <head> <?php do_action( 'open_head' ); ?> <!-- basic title --> <title> <?php /*SEO optimized Titles if Yoast SEO Plugin is not installed. If it is, use default wp_title */ if ( defined('WPSEO_VERSION') ) : wp_title(); else: infinity_base_title(); endif; ?> </title> <!-- core meta tags --> <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /> <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- core link tags --> <link rel="profile" href="https://gmpg.org/xfn/11" /> <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> <?php _e( 'Blog Posts RSS Feed', infinity_text_domain ) ?>" href="<?php bloginfo('rss2_url'); ?>" /> <link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> <?php _e( 'Blog Posts Atom Feed', infinity_text_domain ) ?>" href="<?php bloginfo('atom_url'); ?>" /> <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" /> <!--[if lt IE 9]> <script src="https://html5shim.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <?php wp_head(); do_action( 'close_head' ); ?> </head>
Any one know what has changed that might be causing this duplicate?
Thanks in advance.
??
- The topic ‘Duplicate Site Titles Since Ver 1.4.19’ is closed to new replies.