about mentions schema for Product category pages

#733674
  • Resolved pars machine
    Rank Math free

    hi
    is possible to use about mentions schema for Product category pages

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hello, we appreciate your interest in using About and Mentions Schema for your Product category pages. Currently, the About and Mentions Schema is primarily used to mark up links inside your content to help search engines understand and connect different topics on the internet. However, it’s not specifically designed for Product category pages.

    If you have any other questions or need further assistance, feel free to ask.

    Sources:
    Remove All Schema from Product Category Pages » Rank Math
    About and Mentions Schema » Rank Math
    How to Choose the Right Schema for Your Content » Rank Math
    Product Schema Type » Rank Math

    Hello,

    Thank you for your patience.

    Our plugin adds the CollectionPage Schema( a type of CreativeWork ) to all the categories by default.

    However, if you need to add them to your product categories, then you can modify and use the following filter: https://rankmath.com/kb/filters-hooks-api-developer/#extend-json-ld-data

    Hope that helps.

    pars machine
    Rank Math free

    your mean; if i copy https://rankmath.com/kb/filters-hooks-api-developer/#extend-json-ld-data code in my code snippets pro, about and mentions schema checkouts enabled in product-category ?

    Hello,

    You will have to modify the filter to add the About and Mentions properties. Here is an example:

    add_filter( 'rank_math/json_ld', function( $data, $jsonld ) {
    	if(is_product_cat()) {
    			$data['WebPage']['about'] = ['@type' => 'Thing',
    						    'name' => 'Name of the link',
    					            'sameAs' => 'URL'];
    			
    			$data['WebPage']['mentions'] = ['@type' => 'Thing',
    						       'name' => 'Name of the link',
    						       'sameAs' => 'URL'];
    	}
    
    	return $data;
    }, 99, 2);

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    pars machine
    Rank Math free

    i not fully understand your mean.
    for example, i try to add this about and mentions checkboxes in all product-category pages :
    https://ibb.co/kyxnMR0
    Please tell me the code

    Hello,

    Add the code we shared above to your child theme’s functions.php file. If you’re not sure how to go about it, please share your website login with us so we can help add the code. Please follow these steps:

    • Edit the first post on this ticket and include your WordPress logins in the Sensitive Data section. This is a secure section that only our support staff can access.
    • Make sure you take a complete backup of your website before sharing the information with us.
    • If you prefer, you can use this plugin to generate a temporary login URL to your website and share that with us instead: https://wordpress.org/plugins/temporary-login-without-password/
    • You can also use this plugin to monitor what changes our staff might make on your website (if any): https://wordpress.org/plugins/wp-security-audit-log/

    We appreciate your cooperation and patience. Thank you for choosing Rank Math.

    hi thanks for answer.
    your mean for https://ibb.co/kyxnMR0 checkmarks in my product category options i copy :

    add_filter( 'rank_math/json_ld', function( $data, $jsonld ) {
    	if(is_product_cat()) {
    			$data['WebPage']['about'] = ['@type' => 'Thing',
    						    'name' => 'Name of the link',
    					            'sameAs' => 'URL'];
    			
    			$data['WebPage']['mentions'] = ['@type' => 'Thing',
    						       'name' => 'Name of the link',
    						       'sameAs' => 'URL'];
    	}
    
    	return $data;
    }, 99, 2);

    to child theme’s functions.php ?

    Hello,

    Thank you for your patience.

    The image you are sharing will not show in your editor as we have initially explained.

    You may need to customize and paste the code you shared in your child theme’s functions.php file to add it to your product categories’ schema automatically.

    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 8 replies - 1 through 8 (of 8 total)

The ticket ‘about mentions schema for Product category pages’ is closed to new replies.