Hello,
Thank you for getting in touch with us.
I am sorry but this will not be automatically added. You can use one of the resembling product properties such as additional property or any other property that fits from here: https://schema.org/Product. The chosen property can be added to Rank math existing product schema using the following filter:
/**
* Filter to add for Products.
*
* @param array $entity Snippet Data
* @return array
*/
add_filter( 'rank_math/snippet/rich_snippet_product_entity', function( $entity ) {
$entity['selectedProperty'] = 'yourSubtitle';
return $entity;
});
Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.
Thank you Michael ok i need an advice which better if my title set like this in the snippet
ex:
laptop dell | 1.5mhz – beauty
and in the title set :
Laptop : title
dell | 1.5mhz : subtitle
now which better i add the schema filter or I break the main title using <br/> to have the same looking
1 title no subtitle Laptop <br/> Dell | 1.5mhz
Laptop
Dell | 1.5mhz
best regards
Hello,
Laptop : title
dell | 1.5mhz : subtitle
Where exactly are you adding this data.? Does the field accept html tags or will it display the encoded version of your tags if you add this?
Could you please let us know clearly what you really want to have as the output and where so we can guide you accordingly?
Looking forward to helping you. Thank you.
Hello,
Normally the title it’s like this
Laptop dell | 1.5mhz
But for design reson we change it like this
Laptop : Title
dell | 1.5mhz : subtitle
And we used subtitle plugin to do that
Now we have another option if it’s better which is
<p> Laptop<br> <span class="smaller-font">dell | 1.5mhz<br> </p>
This will create the same design which we need it so my question is for better seo which one is best way , creating title and subtitle , or the 2nd way create title with breaking ?
Best regards
Hello,
Meanwhile Google is really “smart” these days and maybe could detect it, I usually prefer to play safe and I would use the break or the <p> options since all the text will be inside the same tag, so Google will have it easier to detect the right content.
Looking forward to help you.
Hello,
Glad it helped you! If in the future you have any other questions or issues, here we are.
Looking forward to help you.