Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>1- Can you clarify more the exact behavior you need. 2- Can you tell if you are now able to use PrettyPhoto in it's normal usage scenario or that it's not even working with you.</p> <p>I can get you a solution, but just confirm the current situation and tell what you can do right now.</p> <p>and if it's possible, tell what is the final outcome that you need, maybe the solution is simple.</p> <p><strong>Update:</strong> <em>as a result to your recent comment</em></p> <p>You can easily trigger actions on page load to Simulate a user click and so chieve the same scenario with the normal usage of prettyPhoto. (hooking to events) consider this code block:</p> <p><code>$(function () { $('#MyAnchorID').click(); });</code> </p> <p>this will trigger the anchor click event on the page load as if the user clicked the anchor.</p> <p>here is <a href="http://jsfiddle.net/cMrC8/4/" rel="nofollow">a sample code that you can check</a> : </p> <p>Regarding your second problem to open prettyPhoto as modal and not to show the close button, you will need to modify the internal CSS that is shipped with the Prettyphoto plugin:</p> <p>1- Open <code>prettyPhoto.CSS</code> file</p> <p>2- Search for <code>a.pp_close</code>, this is the class that renders the close button.</p> <p>3- you will find it like this: </p> <pre><code>a.pp_close { display: block; float: right; line-height:22px; text-indent: -10000px; } </code></pre> <p>3- Change the <code>display</code> value from <code>block</code> to <code>none</code> to avoid showing the close button inside your modal.</p> <p>4- that's it, let me know if it work.</p> <p>Hope this helps you.</p>
 

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