Tagged: anchor, href, jump, link, sidebar, testimonial, testimonials, Widget
-
AuthorPosts
-
March 18, 2015 at 5:31 pm #413797
One key page has testimonials in sidebar.
Because these testimonials can be long, I am just using a testimonial slider with abbreviated punchy text and a continue arrow.
I can put an Href around the continue arrow and take to the longer version on another page.
However, I would prefer another approach. That way, if anybody clicked on this brief sentence — or any part of the name, title, etc….they would be taken to the longer version on another page for further information.
Any way in functions.php to wrap an href around the entire single testimonial? Or is this pushing the envelope a leetle tooooo far?
Thanks for any suggestions!
March 19, 2015 at 6:12 pm #414705Hey CharlieTh!
Hmm, if your using a text widget in the sidebar you could just surround the testimonial shortcode in a link.
I’m not really sure I understand though. Send us a link to your page and we’ll take a look. You can set your reply as private if you wish.
Best regards,
ElliottMarch 20, 2015 at 2:36 am #414985Elliott, you gave me the clue of what I needed to do. Am sure you would have known a cleaner way to accomplish it than what I “discovered” from your clue…but it works sufficiently for what I was attempting.
Just in case someone else might want to do this…here’s what I tried that did NOT work for me.
As you assumed, I HAD put a shortcode for an av_testimonials in the sidebar widget under appearance > widget.
Putting an href, say in front of [av_testimonials style=’slider’ … would have taken me to the SAME single page for ALL testimonials.
This would have worked if I had wanted to navigate to the top of the testimonials page, but I had hoped to go to the SPECIFIC longer version of the testimonial with an anchor link.
Working on your “clue,” I tried putting the href in the shortcode before each individual
[av_testimonial_single src — but then you get the first testimonials and others seem to disappear until you get the first testimonial again. I DID get the href for that first one to work, however.Finally, I ended up doing a workaround.
I put my href statement right before the content of the testimonial in the shortcode in the widget — referencing one specific anchor link on the testimonials page.
This worked for the visible bulk of the testimonial. It did not, of course, work for the person’s name, title, company…but one of those could also have the same href.
95% workaround was great with me.
And you gave me the clue!
Appreciate it!
March 22, 2015 at 2:30 am #415837Hey!
glad Elliott could help you and thank you so much for sharing your solutions with us!
Best regards,
Andy -
AuthorPosts
- You must be logged in to reply to this topic.