Feedback/Testimonials Additional Editing
This support request was posted in BBQ by bgbaron89
- bgbaron89 May 6, 2013 at 6:26 am
Hey there!
Working out all the kinks in my site now, and I really enjoy the ease of the Feedback quotes system. But I have two questions:
1) My site is not actually a restaurant. Rather, it’s a personal one for my singing/acting/writing, etc. Because of that, I would like it if my automated testimonial scroll that I can option to appear above the footer didn’t title itself “Client Testimonials.” I’d rather call it something else. Can I do this?
2) On the feedback/testimonials template page, what do I need to do to make the page display more than just the five most recent pieces of feedback?
Thanks so much in advance!
-Brad
Juanfra Aldasoro May 6, 2013 at 2:03 pmHi Brad,
Thanks for writing.
1) sure, you can do that. You need to edit the file footer.php on line #19, there you’ll need to replace the text ‘Client Testimonial’.
2) Yes, You need to edit the file template-feedback.php, in line #30 – replace the following code:
$testimonials = get_posts( array ( 'post_type' => 'feedback', 'order' => 'DESC', 'orderby' => 'menu_order') );
With this one:
$testimonials = get_posts( array ( 'post_type' => 'feedback', 'order' => 'DESC', 'orderby' => 'menu_order', 'numberposts' => -1 ) );
Thank you,
Juan.bgbaron89 May 6, 2013 at 5:57 pmThanks Juan! That’s exactly what I wanted and worked perfectly.
One last thing, and I imagine this is another easy code adjustment or addition.
I’d like to exclude the automated footer feedback (formerly called ‘Client Testimonials’) from appearing on certain pages, specifically the Front Page. What would I need to add or change to affect this?
Thanks again!
-Brad
Juanfra Aldasoro May 6, 2013 at 6:22 pmHi Brad,
You can add some conditional PHP over the script that call the footer’s client testimonial.
For example, adding the following condition to the if conditional on footer.php line #14
if ( nice_bool( get_option( 'nice_feedback_footer' ) ) && !is_front_page() )
Best,
Juan.Juanfra Aldasoro May 6, 2013 at 6:24 pmHi Brad,
The editor we use for showing code is replacing the ampersand with & #038;. Please be sure to use the ampersand symbol, twice( &&) .
Best,
Juan.
You must be logged in to reply to this topic.