Single Product Description

#147841
  • Resolved Northw
    Rank Math free

    Hello,

    Single product description was not working correctly, but I have actually found the code (in other support threads here) – and now it works fine. So that I can show SKU – description.

    However, I don’t really follow the logic why anybody should have to add a code to functions.php? Should the global description should work directly without any code? And of course, if there is a different content on some individual products, that would override the global setting.

    Maybe you can consider this as a feature request, because in it’s current state, this option (single product description) is not working as intended, and nobody should have to add a code to make it work.

    Just I thought I’d share my thoughts. Aside from that, this is an excellent plugin and thank you for your hard work!

    Thanks

    PS. As an additional note, when you are editing a product (post type: product) – preview shows a page, rather than a product.. So product related variables such as SKU, price etc. cannot show an actual value.

    For example, see below an actual sample:

    %wc_brand% %wc_sku% – %excerpt%

    EXAMPLE
    %wc_brand% %wc_sku% – COVID19 Update

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

    Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for the delay and for any inconvenience this issue may have caused you.

    The variables will use the data you have set in your products like %wc_brand%, %wc_sku%, %wc_price%, and %wc_shortdesc%. You can also check this link for more information:
    https://rankmath.com/kb/variables-in-seo-title-description/

    You will need to fill up the SKU and availability to for the %wc_sku% variable:

    To set a Brand for the %wc_brand% variable, head over to WordPress Dashboard > Rank Math > General Settings > WooCommerce and choose from any of the available fields to use as your product’s brands.

    Brand Value

    If you want to use a custom value for your Brands, you can do that by using the following code in your theme’s functions.php file:

    // Add Brand for Products.
    add_filter( 'rank_math/snippet/rich_snippet_product_entity', function( $entity ) {
    $entity['brand'] = 'Rank Math';
    return $entity;
    });

    Replace the “Rank Math” text with your actual brand name.

    I hope that helps. Thank you, and please don’t hesitate to contact us if you need further assistance.

    Hello,

    We wanted to add that here is order we follow to generate meta descriptions for WooCommerce product:

    1. Content from SEO Description field
    If that is missing, then:
    2. WooCommerce Excerpt or Product Short Description
    If that is missing, then:
    3. Template From General Settings in WordPress Dashboard > Rank Math > Titles & Meta > Products
    If that is missing, then:
    4. Auto generated Content from the product page

    With that said, we have taken note of your feature request and we will consider incorporating it in a future update.

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

The ticket ‘Single Product Description’ is closed to new replies.