Need to Increase Description Length

#436119
  • Resolved Akhil
    Rank Math free

    Hello there!

    I want to disable truncate of Posts and Categories Meta Description. I know 160 is recommended. But I use description for many other purposes too. So, I need to stop auto-truncating. I need to display full description on frontend HTML, based on whatever I set on SEO Titles & Meta settings (Single Post Description, Category Archive Descriptions).

    Note: I do not write manual descriptions as we follow a dynamic template for descriptions.

    Thanks!
    Akhil.

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

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

    Could you please confirm if this “dynamic template” of yours is a custom field? If so, you can simply include the custom field into your snippet description by using this variable. The Rank Math content analysis will still truncate it and give you a warning but the complete meta description should still show on the frontend.

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

    Akhil
    Rank Math free

    Thanks for the response.

    1. Dynamic I mean variables. For example “%sitename%”

    2. I’m not talking about the warnings. I’m talking about the HTML Output on Frontend in the Meta Field: <meta name=”description” content=”_____”

    I Need a Solution for the second concern. I do not need to truncate the HTML output for Posts and Categories Description.

    Thanks.

    Hello,

    In this case, you can create a custom variable that you can fully control via our filter code. Please refer to the example filter code in this link: https://pastebin.com/B9XRBR1g

    You may insert this filter code into your theme’s functions.php file and use the created custom variable custom_description.

    Another option is to directly edit the meta description via this filter:

    https://rankmath.com/kb/filters-hooks-api-developer/#change-meta-description

    Let us know if I am still missing something and we will do our best to further assist you.

    Thank you.

    Akhil
    Rank Math free

    Seems you are not getting what I’m asking!

    RankMath, by default, truncates the length of the meta description on frontend HTML. I just need to remove that limit! That’s it. I need a functions.php filter for that!

    Hello,

    Our plugin doesn’t truncate the description. If you exceed the length, it will just show you a warning but the whole description will be added in the front end. If it is getting truncated, please share the login details of your site and the URL of an affected post in the sensitive data section so we can check this further.

    Looking forward to helping 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 5 replies - 1 through 5 (of 5 total)

The ticket ‘Need to Increase Description Length’ is closed to new replies.