0
Completed

How to set each review to <h3>?

Mr. Lopez 1 year ago updated by Josh 1 year ago 6

How can I set each review to <h3> like the following:

Example,

review 1


review 2

Under review

Can you explain a little more? Do you want the review text to be in <h3> or just to be bigger. You can control review text size with this....

Image 1858

Hello,

Yes, is it possible for you to extract the first few words before each punctuation of each review to create a heading tag (h3, or h4) like the following: <h3> WP and his team did an amazing job on my website <//h3> ( I intentionally inserted // to show the heading tag. Thanks!

I'm not an expert on this. Can you add this feature with one click on the next update?

Maybe, no one has ever requested it something like this before. In the meantime paste this code into your functions.php file.

add_filter( 'wprevpro_modify_reviewtext' , 'modify_review_text', 10, 4 );
function modify_review_text($reviewtext, $review, $currentform, $length_type) {
$resultarray = preg_split('/(?".$resultarray[0]."";
unset($array[0]);
$reviewtextnew = $title." ".implode(" ", $resultarray);
return $reviewtextnew;
}

Or you can use a plugin like this to add it.

https://wordpress.org/plugins/code-snippets/