Schema Markup

#101244
  • Resolved Prettystyleme.com
    Rank Math free

    Hi,

    I’ve configured your plugin according to your documentation and I think I did setting-up correctly.

    I published a product and I wrote product SEO description, but Desktop and Mobile preview are not showing what I made. Please refer to the below links. Could you please check what I missed? Thanks in advance.

    Miya

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for getting in touch with us.

    The screenshots shared don’t seem to exist.

    That said, this is the 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

    You can add the filter below to your theme functions.php to override WC excerpt and use the Global template

    
    /**
     * Use the Description from Global Setting, if the description is missing in the Post metabox
     */
    add_action( 'rank_math/frontend/description', function( $description ) {
     global $post;
     $desc = RankMath\Post::get_meta( 'description', $post->ID );
    
     if ( is_product()) {
     $desc = RankMath\Helper::get_settings( "titles.pt_{$post->post_type}_description" );
     if ( $desc ) {
     return RankMath\Helper::replace_vars( $desc, $post );
     }
     }
    
     return $description;
    });
    

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

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

The ticket ‘Schema Markup’ is closed to new replies.