-
Using Ahrefs and message come up saying Meta Description Too Short. Please advise how to change.
-
Hello,
Thank you for contacting Rank Math today.
To change the meta description of a post or page you can do as I show you in this screencast: https://i.rankmath.com/9jIRwx
Looking forward to helping you. Thank you.
Hi,
The excerpt comes from a post. Is there a variable that will extract the 1st line of the page?
Hello,
%excerpt%
should also work on pages, are you having any issue using it on a page?Looking forward to help you.
Hi,
The %excerpt% variable seems to extract words from the posts and not the respective page.
Hello,
I have checked your page and it seems to be showing content from your page:
Web applications are one of the most common ******** applications.
Is this not what you want? Could you please share a screenshot via https://imgur.com
Looking forward to helping you. Thank you.
Hi,
I have manually added the description. I would prefer to use a variable should the page content change.
Thanks
Hello,
In that case, if you know about coding or if you have a developer, you could create a custom var that will do that. You could use this filter as a base:
/** * Action: 'rank_math/vars/register_extra_replacements' - Allows adding extra variables. */add_action( 'rank_math/vars/register_extra_replacements', function(){ rank_math_register_var_replacement( 'custom_variable_slug', [ 'name' => esc_html__( 'Custom variable name.', 'rank-math' ), 'description' => esc_html__( 'Custom variable description.', 'rank-math' ), 'variable' => 'custom_variable_slug', 'example' => 'custom_variable_callback()', ], 'custom_variable_callback()' ); });
Looking forward to help 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.
The ticket ‘Meta Description Too Short’ is closed to new replies.