How would/should I use qTip2 to display the the_content();
of a WordPress post?
I’ve been trying to accomplish this for a month now. I got it working once, but it wouldn’t display the content that was placed after a <br>
. I no longer have the code, unfortunately.
I found the code, which worked before, but sadly, couldn’t handle line breaks, <br>
:
http://jsfiddle.net/jv8WN/7/
Here’s a possible solution:
As I’m using
span
instead ofp
, I had to adapt the CSS:JavaScript:
Basically, you just have to wrap the post content into
span
tags, that’s it.The Fiddle: http://jsfiddle.net/jv8WN/33/