Broken Description

#296897
  • The plugin generates a strange Description. It is formed from the text on the page, although the “General meta” is spelled out in the setting. “Доставляем по всей Свердловской области. %title% по ГОСТу, продажа, в наличии. Поставка в день заказа. Бесплатно до ТК. Официальная отчетность. %excerpt%”
    But if you register your code
    “The plugin generates a strange Description. It is formed from the text on the page, although the “General meta” is spelled out in the setting.”
    Then only the text from is output “General meta”. And the text written manually in the Description is also not output.
    How to make it so that the text from “Generalmeta” is displayed, but so that when searching manually on the product page, it is the prescribed text that is displayed?
    In the categories everything works as it should

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

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

    Are you talking about the description on Google SERPs not matching what you have written on your website?

    If that’s the case it’s perfectly normal to see some differences as the Google algorithm does not always honor the value of the meta description. We even have an article about that here: https://rankmath.com/kb/different-meta-title-and-description/

    ​​​​​​​Hope this helps clarify your doubts.

    Don’t hesitate to get in touch if you have any other questions.

    And this is the wrong work of each site u1423034.isp.regruhosting.ru/product/matras-pallada-multipack/
    As I wrote earlier, the rule is set in the plugin settings for products: “my text is %expert_online%”. But for some reason the plugin outputs if THERE is a SHORT DESCRIPTION only “some of my text”, without %expert_online%”. If THERE IS A SHORT DESCRIPTION, then only a short description is displayed

    Hello,

    What you are seeing is following the order we use for the description in the products.

    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

    Since the SEO description is considered “empty” it’s taking the product short description which is the second on the list of available methods.

    Hope this helps clarify your doubts.

    Don’t hesitate to get in touch if you have any other questions.

    It is possible to set a priority so that it is loaded first
    2. Template From General Settings in WordPress Dashboard > Rank Math > Titles & Meta > Products

    And then
    3. WooCommerce Excerpt or Product Short Description
    If that is missing, then:

    Prabhat
    Rank Math agency

    Hello,

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

    You can also follow this guide to add the code:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Hope this helps.

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

The ticket ‘Broken Description’ is closed to new replies.