Reply To: Review section changes?
Post count: 11437
Adek
March 19, 2018 at 9:53 am
#29680
Hi winpeace,
1. Please try to update this file wp-content/plugins/jnews-review/class.jnews-review-module-view.php
with this one https://pastebin.com/zKAkdnwP
Then add this CSS code below into Additional Style:
1 2 3 4 5 6 7 8 9 10 |
.jeg_review_search_results .rating_mean { position: absolute; z-index: 9; top: 0; right: 0; background: #4886ff; color: #fff; padding: 5px 10px; font-weight: bold; } |
2. You can try to use this code below:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
public function product_pros() { $pros = vp_metabox('jnews_review.good'); $output = ''; if($pros) { foreach($pros as $pro) { if(!empty($pro['good_text'])) { $output .= "<li><i class=\"fa fa-check-circle\"></i> " . $pro['good_text'] . "</li>"; } } } if(!empty($output)) { $output = "<div class=\"conspros\"> <h3>" . jnews_return_translation('PROS', 'jnews-review', 'pros') . "</h3> <ul>{$output}</ul> </div>"; } return $output; } public function product_cons() { $cons = vp_metabox('jnews_review.bad'); $output = ''; if($cons) { foreach($cons as $con) { if(!empty($con['bad_text'])) { $output .= "<li><i class=\"fa fa-times-circle\"></i> " . $con['bad_text'] . "</li>"; } } } if(!empty($output)) { $output = "<div class=\"conspros\"> <h3>" . jnews_return_translation('CONS', 'jnews-review', 'cons') . "</h3> <ul>{$output}</ul> </div>"; } return $output; } |
Thank you