Title appear two times on source
-
Hi, Thanks a lot for your job.
Listen I come from Rank Math.
On my webpage, I have two issues with the title and description.Home Page:
I found two times the Title Tag.
The first one is empty, and the second one shows what I set on the page.
However, the browser doesn’t show the title at all. (show the url)In post/page
I found two times the title tag
The first one shows the name of the file.
The second one shows what I set using your plugin.
I see the browser show the first one title.I copy below what my theme is using on the header
Could you help me to have always:Title I set using your plugin only
Description I set using your plugin only.Thanks a lot for what you are doing.
<!– ==SEO== –>
<?php if (is_front_page()) {
if ($smof_data[‘site_keywords’]) {
?>
<meta name=”keywords” content=”<?php echo $smof_data[‘site_keywords’]; ?>”/>
<?php } ?>
<?php if ($smof_data[‘site_desc’]) { ?><?php } ?>
<?php if ($smof_data[‘site_title’]) { ?>
<title><?php echo $smof_data[‘site_title’]; ?></title>
<?php } else { ?>
<title><?php wp_title(‘ – ‘, true, ‘right’); ?><?php bloginfo(‘name’); ?></title>
<?php
}
} else {
?>
<title><?php wp_title(‘ – ‘, true, ‘right’); ?><?php bloginfo(‘name’); ?></title>
<?php } ?>
- The topic ‘Title appear two times on source’ is closed to new replies.