0
Answered

icons used for funnels in templates?

JPJP 1 year ago updated by Josh 1 year ago 3

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

Under review

 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 );

Image 1970

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 = 'Google Logo SVG'; } return $newlogo; }

Image 1971

Hi Josh,

That's perfect and exactly along the lines I was thinking of. Thank you and have a great weekend!

Cheers,
Jamie