Jump to content
TNG Community
MVB

Kloosterman double header issue

Recommended Posts

MVB

Hi, 

I used the Kloosterman intergration method and then moved to the issue of removing the double title tags.

After implementing these tweaks I noticed that the double title tags still remain, however the second one shows "page not found".

I checked the genealogy pages of Kloosterman himself, and found that the same issue is there as well.

In his case:

<title>Surname List: Kloosterman Genealogy</title>

<title>Page not found &#8211; Kloosterman Genealogy</title>

 

My question: is this in any way damaging the SEO?

 

Many thanks in advance.

 

Share this post


Link to post
Share on other sites
klooster

On my website the first header reads as follows:

<title>Surname List: Kloosterman Genealogy and Emigrants to America</title>

The second (WP header) cannot find the "Surname List:" from the TNG files and  reads as follows:

<title>Pagina niet gevonden &#8211; Kloosterman Genealogy and Emigrants to America</title>

 

I do not think it will make any difference for the SEO.

Share this post


Link to post
Share on other sites
cfj
7 hours ago, MVB said:

I used the Kloosterman intergration method and then moved to the issue of removing the double title tags.

I use this code in my wp-meta.php, but it doesn't always work. The title tags are there, but no title.

<?php
require ('/path/to/wordpress/wp-load.php'); 
add_filter('document_title_parts', 'filter_title_part');
function filter_title_part($title) {
return array('');
}get_header ('tng');
?>

 

Share this post


Link to post
Share on other sites
PeterC66
On 6/26/2018 at 8:31 AM, MVB said:

After implementing these tweaks I noticed that the double title tags still remain, however the second one shows "page not found".

I am chasing severe Google indexing issues that started about 2020. I am therefore trying to resolve all possible relevant issues. One of these is duplicate Title tags in TNG pages hence my interest in this topic.
I implemented the Kloosterman method of integration several years ago, and have redone it (twice) using Cees' extra instructions to get rid of the double head, title, body and html tags. I think I have done it correctly and the extra head and body tags have gone. But the extra HTML and Title tags remain.
After various researches I have managed to get rid of the extra Title tags by using the remove_action function - as in the attached WPTNG-meta.php.

Incidentally, I have decided to leave the extra html tag for now because I suspect it does not affect indexing.

WPTNG-meta.php

Share this post


Link to post
Share on other sites
theKiwi

This is similar to what I do using the TNG-WordPress-plugin - a change to the WordPress title code to suppress the WordPress title tags if it's the TNG page. That lets the TNG title be the only title for the page, and so the title picked up by search engines.

This is a Mod that makes the needed changes to the WordPress general-template.php

https://lisaandroger.com/downloads/download-info/page-title-change-for-tng-and-wordpress/

Roger

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×