Issues in Webmaster Tool

#16993
Viewing 6 replies - 1 through 6 (of 6 total)
  • No reply?

    Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    Please add the offer and the review via the fields offered for that in your WooCommerce product listing. We automatically pick that information from your product pages and convert them into schema.

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

    Kyler
    Rank Math free

    I’m running into the same issue. Mostly the brand part.

    I went into the Woocommerce settings in the plugin at wp-admin/admin.php?page=rank-math-options-general

    And it only gives me the option to choose set variables, none of which is my shop’s brand. It’s either tags, categories, or attributes. I use a lot of tags / categories, so that’s not an option. So I created a new attribute with my brand name and selected that. Ran it through the markup tester and brand is still showing as empty
    https://search.google.com/structured-data/testing-tool

    On the product page, I can’t set brand.

    Can you add a custom field so I can set my own brand in there?

    Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    I can suggest that you make use of the following code snippet to add a brand value for all your products without the need for using a custom field:

    /**
     * Filter to add Brand Name for Products.
     *
     * @param array $entity Snippet Data
     * @return array
     */
    add_filter( 'rank_math/snippet/rich_snippet_product_entity', function( $entity ) {
        $entity['brand'] = 'Rank Math';
        return $entity;
    });

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Kyler
    Rank Math free

    I’ll be happy to try that, but where do I add that code? Is there a section / tab within Rank Math? I tried looking and didn’t see any place to add code except for .htaccess and robots.txt

    Hi there,

    Thanks for getting back to us.

    You need to add this to your theme’s functions.php file.

    I hope this helps.

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

The ticket ‘Issues in Webmaster Tool’ is closed to new replies.