How to add Mentions andAbout schema

#1120912
  • Resolved Marina Sestan
    Rank Math free

    Hi, How can I add mentions and about schema that inlinks generates for me for each post separately. I tried using a third-party plugin, but it overrode your schema and recipe schema. What plugin can I use, or how can I do that with or without plugin? Or maybe using Free Rank Math? Thank you

    Marina Sestan

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello,

    We apologize for the issue you are facing with adding Mentions and About schema to your posts. To add Mentions and About schema using Rank Math, you can follow these steps:

    1. Edit Your Post/Page: Open the post or page where you want to add the schema by clicking the Edit option.
      Edit your post or page

    2. Open Rank Math SEO Settings: Click on the Rank Math SEO icon on the top-right of the screen to open the SEO settings for the page.
      Click Rank Math SEO icon in Gutenberg Editor

    3. Navigate to Link Options: When you add a link in your content, you will see additional options to mark the link with About and/or Mentions Schema. You can enable these options directly from the link settings.
      Set About and Mentions Schema in Rank Math

    4. Save Changes: After configuring the schema settings, make sure to save your changes.

    Please note that the Mentions and About schema features are available in the Rank Math PRO version. If you are using the free version, you may not have access to these specific features.

    If you are looking for a professional setup or more advanced assistance, we recommend considering our Rank Math professional setup service, which requires a PRO subscription. This service ensures that your plugin setup is fully correct and adheres to the latest SEO standards.

    Thank you for raising this concern! If you have any further questions or need assistance, feel free to reply to this ticket, and a human agent will assist you further.

    Sources:
    Using Link Controls in Rank Math
    How to Use Rank Math’s Content AI for SEO » Rank Math

    I don’t have pro version. Will Sogo headers and footers plugin be in comflict with Rank math? Thank you

    Hello,

    Thank you so much for getting in touch.

    Using other schema plugins will surely conflict with ours.

    If you wish to customize our schema without the PRO, you’ll have to make use of our filter code to extend the schema structure and add custom properties like Mentions and About:

    /**
     * Collect data to output in JSON-LD.
     *
     * @param array  $unsigned An array of data to output in json-ld.
     * @param JsonLD $unsigned JsonLD instance.
     */
    add_filter( 'rank_math/json_ld', function( $data, $jsonld ) {
    	return [];
    }, 99, 2);

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

    I don’t undertand the steps I need to take to make this happen. A step by step would be helpful. Thank you🤗

    Hello,

    Here’s a sample filter you can use and customize to add the About and Mentions schema to your site:

    add_filter( 'rank_math/json_ld', function( $data, $jsonld ) {
        // Add this to your about page only
        if ( ! is_page( 'about' ) ) {
            return $data;
        }
    
        return [
            [
                '@context' => 'https://schema.org',
                '@type'    => 'WebPage',
                'about'    => [
                    '@type' => 'Thing',
                    'name'  => 'Web Development',
                    'sameAs' => 'https://en.wikipedia.org/wiki/Web_development'
                ],
                'mentions' => [
                    [
                        '@type' => 'Organization',
                        'name'  => 'WordPress',
                        'sameAs' => 'https://wordpress.org'
                    ],
                    [
                        '@type' => 'Thing',
                        'name'  => 'SEO',
                        'sameAs' => 'https://en.wikipedia.org/wiki/Search_engine_optimization'
                    ]
                ]
            ]
        ];
    }, 99, 2 );

    If you’re not sure how to add this code, you can follow this guide:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Also, if you need to further customize the filter, it would require extensive custom coding. You may need to hire a developer who could implement that since it already falls outside the scope of our support.

    Looking forward to helping you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)

The ticket ‘How to add Mentions andAbout schema’ is closed to new replies.