Adding Excerpt on Frontend

  • Hello

    I want to place the rankmath excerpt under the title on the woocommerce product page using hooks

    Which action hook or code do I need to use

    Thank you.

Viewing 1 replies (of 1 total)
  • Hello,

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

    You can use the following hook to create a custom code, just make sure to wrap it inside a conditional checking you are in the page you want to modify the meta description:

     * Allow changing the meta description sentence from within the theme.
     * @param string $description The description sentence.
    add_filter( 'rank_math/frontend/description', function( $description ) {
    	return $description;

    Looking forward to helping you. Thank you.



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

The ticket ‘Adding Excerpt on Frontend’ is closed to new replies.