Gareth Barry
Forum Replies Created
-
Forum: Plugins
In reply to: [Speed Booster Pack ? PageSpeed Optimization Suite] Broken in WP 4.3Hi Guys,
Just a quick tip, you can still get it working by dragging the ‘general options’ tab to the bottom.
Forum: Plugins
In reply to: [Testimonials Widget] Featured Testimonial Image LightboxHi Michael,
Basically, what I had trying to to do was locate where the featured images for Testimonials (see this page:https://smilestore.ie/testimonials/) were being pulled and manually adding in a lightbox call.
I’m still tinkering and working, but I got as far as locating line 1191 in class-testimonials-widget.php (testimonials-widget-premium/includes/testimonials-widget/includes/libraries/)
Which reads:
$image = ''; if ( $do_image ) { $pic = $testimonial['testimonial_image']; $image .= '<span class="image">'; $image .= $pic; $image .= '</span>'; }
Basically, I was experimenting with trying to call shadowbox through href after the span. First I tried defining the $image to replicate it’s source:
$image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' );
and then calling it by echoing it in the href. Sorry if this is making absolutely no sense, I’m only just starting out with php. See below for an exact replica of what I had going.$image = ''; if ( $do_image ) { $pic = $testimonial['testimonial_image']; $image .= '<span class="image"><a href="<?php echo $image; ?>" rel="shadowbox">'; $image .= $pic; $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' ); $image .= '</span></a>'; }
The issue, I realise is that I can’t seem to locate and add the relevant src path for the images. Any help would be appreciated, and sorry for butchering your code.
Forum: Plugins
In reply to: [Testimonials Widget] Display Tags under TestimonialYeah sorry, that seems so obvious now. Thanks for the tip – worked a charm.
Forum: Plugins
In reply to: [Testimonials Widget] Display Tags under TestimonialSorry Michael, what I mean is (if you view this page, and please excuse the design it’s not finished: https://blue-pixal.ie/smilestore_demo/testimonials/ ) – After or next to the author name and location if the tags could be visible.
The general idea is that people input the name of a dentist or procedure when uploading their testimonial in the tag section so that a sort of ‘tagging’ system is set up.
Also, thank you for the fast response.
Okay, thank you for your response Matcha. Great plugin by the way.
Right, guessing this is not possible?