Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>well its because you need to remove the Div tags this Jquery plugin add each time at page load( on each post back as well). To do that eighter add the following fix code in the js file function <code>$.fn.prettyPhoto</code> or at your <code>$(document).ready ();</code> but you should make sure that your script runs before that of the Jquery plugin</p> <p>Fix Code have to run on each page load before <strong><code>$("a[rel^='prettyPhoto']").prettyPhoto()</code></strong> function :</p> <pre><code>//to remove div tag prettyPhoto adds on each page load $('div.pp_pic_holder').remove(); $('div.pp_overlay').remove(); $('div.ppt').remove(); //End remove div tag prettyPhoto adds on each page load </code></pre> <p>so you can change your function to this:</p> <pre><code> function bindPrettyPhoto() { //to remove div tag prettyPhoto adds on each page load $('div.pp_pic_holder').remove(); $('div.pp_overlay').remove(); $('div.ppt').remove(); //End remove div tag prettyPhoto adds on each page load $("a[rel^='prettyPhoto']").prettyPhoto({theme:'facebook'}); }; </code></pre> <p>as I said before you could also add the fix code to the the js file function <code>$.fn.prettyPhoto</code></p> <p>so for version 2.5.6 just change the function to this(by adding the fixation code at the begining of the function):</p> <pre><code> $.prettyPhoto = { version: '2.5.6' }; $.fn.prettyPhoto = function (settings) { $('div.pp_pic_holder').remove(); $('div.pp_overlay').remove(); $('div.ppt').remove(); .../* the rest of the function*/..... </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload