Support » Plugin: Testimonials Widget » Custom HTML Output
Custom HTML Output
-
Hi Michael,
I’m trying to do something very similar to GC.
I need to move the citation above the quote so that I can wrap both the image and the citation in a div and float them to the right.
I’ve tried to apply the sample filter that you posted. But even if I just use the code right out of the box all of the output on the homepage disappears. It comes back the second I remove the filter.
What am I doing wrong?
-
If the home page goes away, then there’s an error in the code someplace.
I’ve just downloaded the gist and ensure it compile fine.
Did you copy and paste the custom code without the
<?php
?>
PHP tags into your theme’sfunctions.php
file?Yes, I just tried it again, copying and pasting it (minus the php tags), and everything vanishes.
Please copy and paste into pastebin your functions.php file with the added code.
Sure thing. And thank you! Here
I’m bummed, the file compiled in PHP just fine.
Can you chase down your error_log with the notices on why the home page goes blank?
Hmmm…
For some reason I wasn’t able to get a php error logging plugin to work.
However, when I turned on debugging mode I got this result on the homepage instead of the testimonials.
Notice: Undefined index: hide_author in /home/ahovoyages/ahovoyages.com/wp-content/themes/ahovoyages/functions.php on line 85 Notice: Undefined index: hide_author in /home/ahovoyages/ahovoyages.com/wp-content/themes/ahovoyages/functions.php on line 85
Even stranger…
If I select “Hide Author/Source” in the settings menu then the only output I get on the homepage are the names of the citation sources and nothing else.
I’m a silly man, the CSS class names are pre 2.10.0 update. Please try the Gist again, https://gist.github.com/michael-cannon/4333863.
Works like a charm. Thank you!
So good now?
If not, what specifically are you wanting to accomplish?
No it’s all good. I can take care of the html now.
- The topic ‘Custom HTML Output’ is closed to new replies.