• Currently, the “howto” title is using my meta SeO title, I want the “howto” to be different from the meta Seo title of the page. Our home page is our official page, but there is a ‘howto” schema on the page too, we want to be something different like “How To Register For the Program” just like there is a description for “howTo” different from the “meta description of the page itself. The “howTo name shouldn’t be using the same title as the page title. See screenshot https://snipboard.io/W6ASpe.jpg

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support Rank Math Support

    (@rankmathteam)

    Hello @thatmme,

    Thank you for contacting support.

    If you are using the HowTo block from our plugin and would like to change the name you can apply the following custom filter on your website:

    add_filter( 'rank_math/json_ld', function( $data, $jsonld ) {
    $data['howto']['name'] = 'My custom title for HowTo Schema markup'; //Change to the title you want for your page
    return $data;
    }, 99, 2);

    Hope this helps solve your issues.

    Don’t hesitate to get in touch if you have any other questions.

    Thread Starter Michael Ekundayo

    (@thatmme)

    Thank you for very much, but does that mean if I want it on another page for a different title, says, my next “howto” is: How To Visit Our School Without School Bus” Do I need to go and paste the same code all over again on function.php and change the text name. I am sorry, I am just confused?

    Thread Starter Michael Ekundayo

    (@thatmme)

    Because we are intending to add many howtos on our website and which title will be different from the page title obviously.

    Plugin Support Rank Math Support

    (@rankmathteam)

    Hello @thatmme,

    You can modify the snippet to follow a specific pattern for the HowTo title.

    You can easily modify the title when using the HowTo Schema from the Schema Generator of Rank Math, but when using the HowTo block, to have a different title, you’ll need to use the snippet.

    There are two approaches you can follow here:
    1. Use the HowTo Schema from the Schema Generator available in the PRO version and add the shortcode from the Schema to the content to extract the data.

    2. Either define a pattern in the Snippet or add a custom field using a plugin like ACF to the posts/pages and add the required HowTo title there.

    Further, use the get_field() function to fetch the value of that field and use it in the snippet provided in our previous reply.

    The final code in this case would be something like:

    add_filter( 'rank_math/json_ld', function( $data, $jsonld ) {
    $data['howto']['name'] = get_field('field_name'); //Replace 'field_name' with the name of the created feild
    return $data;
    }, 99, 2);

    Hope that helps. Thank you.

    Thread Starter Michael Ekundayo

    (@thatmme)

    Thank you so much. this solve issue.

    Thread Starter Michael Ekundayo

    (@thatmme)

    sorry, when i tried the code, my editor the name field is not editable.

    scrrenshot: https://snipboard.io/oFMNqG.jpg

    secreenshot: https://snipboard.io/GKwZP2.jpg

    screenshot 3: https://snipboard.io/HDRobL.jpg

    The field “name1” is not editable for me to put the name for my howto schema.

    Thread Starter Michael Ekundayo

    (@thatmme)

    i have resolved it. I never added any field earlier. It’s working perfectly now.

    Plugin Support Rank Math Support

    (@rankmathteam)

    Hello @thatmme,

    We’re really glad that it is working properly and that the solution helped.

    Please feel free to reach out to us in case you need any other assistance. We are here to assist.

    Thread Starter Michael Ekundayo

    (@thatmme)

    of course. i am really grateful for your team.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘“HowTo” name Should Be Different From My Post SEO Title’ is closed to new replies.