- Wordpress strips out the HTML from the 'excerpt' field
- If the HTML stays in there, it shows up when the user hovers over the element
The solution for the second piece involves the modification of two files: video-gallery.php and the jquery.prettyPhoto.js file.
video-gallery.php
Change this in your Wordpress Watercolor's installation:
<a href="<?php echo $videoURL ?>" rel="prettyPhoto" title="<?php the_excerpt() ?>">
To this:
<a href="<?php echo $videoURL ?>" rel="prettyPhoto" title="<?php the_title() ?>" data-title="<?php the_excerpt() ?>">
This sets the title attribute (what pops up in that yellow box) to the title of the video, and then gives a new attribute, data-title, the HTML-filled description.
jquery.prettyPhoto.js
Search for
attr('title'). There should be three matches. Change each 'title' to 'data-title'. Then, reupload the file. This tells prettyPhoto to load the description from the 'data-title' tag and not just from the 'title' tag.
No comments:
Post a Comment