0
Completed
How to set each review to <h3>?
How can I set each review to <h3> like the following:
Example,
review 1
review 2
Customer support service by UserEcho
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....
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!
You cand do that with a custom filter. Check the last example here...
https://wpreviewslider.userecho.com/knowledge-bases/2/articles/2013-change-the-review-text-with-a-custom-filter
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/