description

#252052
  • Hey.
    I cant manage description on the product pages (woccommerce).
    I set “Купить %title% в Москве от производителя %wc_brand%. Доставка, монтаж точно в срок.” for all products, but it does not apply.
    And it seems that i cant edit descriprion on product page.
    Titles works, its ok
    In the data base in the “wp_rank_math_analytics_objects” i didnt find description at all. It seems than he does not white to data base.
    What a promblem?

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

    Thanks for contacting us 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 product or product category for that matter:

    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 use the filter given below in your theme’s functions.php file to force the description from Titles & Meta settings as your product’s SEO description:

    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;
    });

    However, if you are not able to edit the description in your product editor then this must be due to a conflict with some other plugin or your theme. Please follow our troubleshooting guide to determine that: https://rankmath.com/kb/check-plugin-conflicts/

    Let us know how that goes. Looking forward to helping you.

    Yes, thanks, php code helped me to resolve this.

    Hello,

    We are super happy that your issue is resolved. 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 ‘description’ is closed to new replies.