Bulk / default – SEO description problem

#368384
  • Resolved Michael Thaler
    Rank Math free

    To whom I am concern,

    I hope you can help me with a problem I am facing. I would like to set the WooCommerce product description to default (%title% – In Ihrem Schweizer Online-Shop. Nur einen Klick entfernt. Mit kostenlosem Versand!). As you seen on the screenshot I did put that in RankMath, but on the products in WooCommerce It doesn’t take that setting over. I still need to do it manually on every product. Maybe I do something wrong. I am using the WoodMart theme.

    (Product Pages 1-11 I did manually)

    Thank you for your support, I really appreciate it.

    Best regards,
    Mike

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

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

    This is the order we follow to generate meta descriptions for WooCommerce products:
    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

    If you wish to give more preference to the description set in Titles & Meta > Products, then you can add the below code in your theme’s functions.php file:

    add_action( 'rank_math/frontend/description', function( $generated ) {
    	if ( ! is_product() ) {
    		return $generated;
    	}
    	global $post;
    	$desc = RankMath\Helper::get_settings( "titles.pt_product_description" );
    	$desc = RankMath\Helper::replace_vars( $desc, $post );
    	return empty( $desc ) ? $generated : $desc;
    });
    

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

    Thank you for your support.

    Hello,

    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

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

The ticket ‘Bulk / default – SEO description problem’ is closed to new replies.