Vanilla 2
Discussions
Activity
Sign In
prettyPhoto support
Bad value prettyPhoto for attribute rel on element a
dilshan
January 2015
i replaced "rel" to "data-gal" in html and javascript souce but it stopped functioning
jquery.prettyPhoto.js :
theRel = $(this).attr('data-gal');
galleryRegExp = /\[(?:.*)\]/;
isSet = (galleryRegExp.exec(theRel)) ? true : false;
// Put the SRCs, TITLEs, ALTs into an array.
pp_images = (isSet) ? jQuery.map(matchedObjects, function(n, i){ if($(n).attr('data-gal').indexOf(theRel) != -1) return $(n).attr('href'); }) : $.makeArray($(this).attr('href'));
pp_titles = (isSet) ? jQuery.map(matchedObjects, function(n, i){ if($(n).attr('data-gal').indexOf(theRel) != -1) return ($(n).find('img').attr('alt')) ? $(n).find('img').attr('alt') : ""; }) : $.makeArray($(this).find('img').attr('alt'));
pp_descriptions = (isSet) ? jQuery.map(matchedObjects, function(n, i){ if($(n).attr('data-gal').indexOf(theRel) != -1) return ($(n).attr('title')) ? $(n).attr('title') : ""; }) : $.makeArray($(this).attr('title'));
html :
<img width="200" height="200" src="images/thumb.jpg" class="wp-post-image" alt="thumb" />
<h3>headline</h3>
<p>description line</p>
<span><a href="images/full.jpg" class="zoom-icon" title="title here" data-gal="prettyPhoto">View zoomed</a></span>
where else i will make change then ?
Add a Comment
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
4,649
General
1,277
Showoff your stuff!
13
prettyComments support
18
prettySociable support
40
WP-prettyphoto support
290
prettyCheckboxes support
19
prettyGallery support
118
prettyMobile support
12
prettyPhoto support
2,833
prettyLoader support
16
INK - Support forum
13
Powered by Vanilla