Item Webpage Title for SEO purpose

Hi ,

how to set Item Webpage Title for SEO purpose, without renaming the item ?

Item Title in Item doctype :

Item displayed on website :

Pointer :

Two ways as of now. v12.1.6

  1. Either change the core template code, as shown above replace

title to desired Item doctype field_name

  1. Overwrite the item template via custom app.
1 Like

My link building consultant explained this in a completely different way. Firstly, I add the function to functions.php file:
function customTitle(){
global $post;
$customTitle = get_post_meta($post->ID, ‘custom_on_page_title’, true);
if(!$customTitle){
the_title();
}else{
echo $customTitle;
}
}
Secondly, I create a custom field with the name custom_on_page_title and set the value to whatever your title should be. Thirdly, I open the template which is going to be edited and replace the_title() with customTitle().