0
Answered
icons used for funnels in templates?
Hi Josh,
Is there a filter or another bit of code that I can use which will enable me to replace the icons used for the review funnels (Google icon, Trip Advisor icon etc), with an inline SVG? This will keep them nice and crisp on all devices, allow me to make them larger than 32px and reduce the number of requests on the page. So probably a good idea?
I look forward to hearing from you.
Cheers,
Jamie
Customer support service by UserEcho
I agree the icons should be svg. I just haven't had time to convert them or find new ones.
I've added a filter in the next update. If you want to go ahead and add it to your version here are the steps.
Edit this file...
WP-Review-Slider-Pro\wp-review-slider-pro\public\partials\template_class.php
around line 761 before the return add this line...
$logo = apply_filters( 'wprevpro_modify_sourcelogo', $logo, $review, $currentform );
Then in your theme functions.php file you can use it like so...
add_filter( 'wprevpro_modify_sourcelogo' , 'modify_sourcelogo', 10, 4 ); function modify_sourcelogo($logo, $review, $currentform) { if($review->type=="Google" ){ $newlogo = ''; } return $newlogo; }
Hi Josh,
That's perfect and exactly along the lines I was thinking of. Thank you and have a great weekend!
Cheers,
Jamie