Hey @bareog,
Can you post the code you’ve added to your functions.php file? We’ll be happy to get this sorted for you.
– Arnaud
Thread Starter
bareog
(@bareog)
First of all, thank you for your attention.
CODE:
add_filter('aioseo_title', 'sfwd_custom_title');
function sfwd_custom_title($title) {
if ( is_category( "CATEGORY 1" ) ) {
$title = get_option( 'catonewrite' );
} elseif ( is_category( "CATEGORY 2" ) ) {
$title = get_option( 'cattwowrite' );
} elseif ( is_category( "CATEGORY 3" ) ) {
$title = get_option( 'catthreewrite' );
} elseif ( is_tag( "TAG 1" ) ) {
$title = get_option( 'tagonewrite' );
} elseif ( is_tag( "Tag 2" ) ) {
$title = get_option( 'tagtwowrite' );
} elseif ( is_tag( "Tag 3" ) ) {
$title = get_option( 'tagthreewrite' );
}
return $title;
}
I can change the category title. That’s not the problem.
However, the title is incorrectly located in the navigation system.
must be:
EXAMPLE – MYSITE NAME
Desc area
Mysite.com> tags> EXAMPLE
Google:
EXAMPLE – MYSITE NAME
Desc area
Mysite.com> tags> EXAMPLE – MYSITE NAME
The title should appear as “EXAMPLE – MYSITE NAME” in Google Results, but only as “EXAMPLE” in Google navigation.
Hey @bareog,
Please navigate to General Settings > Advanced Settings and check if there is a setting there called “Description Format”. If so, that’s what’s being appended to all your descriptions. This is a setting we carried over from v3.
– Arnaud
Thread Starter
bareog
(@bareog)
🙁 I could not explain.
the problem is not in the description part.
Please see this screenshot:
https://prnt.sc/w8m2a8
Hey @bareog,
Thank you for getting back to me.
We understand now. I’ve opened a ticket and this should be fixed in the next release!
– Arnaud
Thread Starter
bareog
(@bareog)
You are very interested, thank you.
I will use the 3x version until I get a solution.
I’m following.
Hey @bareog,
This should be fixed in the new update that just went out. It may take a while though until Google recrawls your pages again.
– Arnaud