This topic has 17 replies, 3 voices, and was last updated 5 years, 6 months ago ago by Rose Tyler
Dear Support,
I use yoast for managing the seo aspects of my website. I have been in contact with them and realized that the yoast plugin cannot remove or modify the sitename added at the end of a page title. In other words, I was informed that the theme is adding the sitename at the end of page/blog/products titles.
Now, my issue is that there is no separator before the sitename therefore, the sitename is joined to the title making its reading difficult.
Could you please support me in adding a separator before the sitename added to the meta titles?
Thanks.
F.
Hello,
Could you provide screenshots and temporary wp-admin and FTP access?
You can use such screenshot maker as Lightshot https://prnt.sc/
Regards
Dear Support,
Please find attached the images.
As you can see in the image 1, at the end of the SEO title the website name is added. However, if you see the yoast snip of the same page title in image 2, you will see no website name added at the end.
I was told by yoast and other users that this is due to the theme setting. So in this case it is the theme adding the website name at the end of each page SEO title.
Could you please help me to at least add a separator between the end of the SEO title and the website name added by the theme?
Thanks.
F
Hello,
Sorry for the delay due to the weekends.
Please provide temporary wp-admin and FTP access, so we can take a closer look.
Regards
Dear Rose,
Please find the access in the private area.
I really appreciated the fact that in the other ticket of few hours ago you checked the issue and told me how to solve it. I would like to use the same approach. It is a live website, therefore I would really kindly ask you to be extremely careful to not break the website.
Best regards.
F.
Hello,
1) Add this code in functions.php file of your child theme:
remove_filter( 'wp_title', 'etheme_wp_title', 10, 2 );
clear cache and check the result (right click on page http://prntscr.com/nm12d7 – http://prntscr.com/nm12mq)
2) If the first solution dosn’t help, copy etheme_wp_title
function (legenda/framework/theme-functions) into functions.php file of the child theme and edit code of the function there.
Do changes in files via FTP.
Regards
Dear Rose,
Thank you for your suggestions, please find below the outcome:
1) I have implemented the code however it does not work
2) I have copied the below code in the child theme functions and commented the line which adds the title however it does not have any impact on the page titles
if(!function_exists(‘etheme_wp_title’)) {
function etheme_wp_title($title, $sep ) {
global $paged, $page;
if ( is_feed() ) {
return $title;
}
// Add the site name.
//$title .= get_bloginfo( ‘name’, ‘display’ );
// Add the site description for the home/front page.
$site_description = get_bloginfo( ‘description’, ‘display’ );
if ( $site_description && ( is_home() || is_front_page() ) ) {
$title = “$title $sep $site_description”;
}
// Add a page number if necessary.
if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) {
$title = “$title $sep ” . sprintf( esc_html__( ‘Page %s’, ‘legenda’ ), max( $paged, $page ) );
}
return $title;
}
add_filter( ‘wp_title’, ‘etheme_wp_title’, 10, 2 );
}
Could you please let me know if I am doing something wrong or what to do?
Thanks.
F.
Hello,
Then provide us with FTP access to check why it does not work for you.
Regards
Dear Olga,
Please find the access in private area.
Please keep note of any change because in case of issues I would like to revert the changes.
Thanks.
F.
Hello,
Thanks. The topic was passed to our developers. They will be able to check on Monday and I’ll give you the answer.
Regards
Hello,
Please make sure that credentials from FTP are related to the mentioned site, because we can’t see changes that were done in files (we have reverted them for now). Or provide us with a path to the theme folder on FTP.
Do you use CDN?
Regards
Dear Rose,
Sorry for my late reply, I could not reply earlier.
I confirm that the FTP credentials already provided you concern the right website. Please find the path to the theme folder: /public_html/wp-content/themes/legenda-child
I do not use CDN.
Thank you to have reverted the changes since not working. Please keep me informed about this issue and implemented steps.
Best regards.
F.
Hello,
Have you changed the Dashboard access http://prntscr.com/nr92kv ?
We are able to connect to your FTP but can’t login to Dashboard.
Waiting for the correct Dashboard access to proceed.
Regards
Please find the new password.
Hello,
Check now, please.
Regards
Dear Olga,
Thank you for your reply and work. I noticed a change and we are getting close.
I have notice that you implemented a space however there is duplication. What i see now in the SEO title, if I open the homepage, is the following: please read the private area.
Is there a way to achieve the second solution proposed? Is there something I could do?
Thank you.
F.
Hello,
I do not see the problem on your Home page https://prnt.sc/nsolbe Have you sorted out?
Please clear cache and check one more time.
Regards
You must be logged in to reply to this topic.Log in/Sign up