Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #20031


    I’ve tried everything I know, but couldn’t figure it out: I want to set WIDTH and HEIGHT of lightbox windows to 600×400 either in A tag or DIV tag. Can anyone please give me a hint? Thank you very much :)


    <a href="#inline-1" rel="prettyPhoto">Show it</a>

    <div id="inline-1" style="display:none;">
    <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>


    Hi klemenstruc,

    As far as I know this isn’t possible with prettyPhoto. At least, I couldn’t find any documentation for it that would imply it is. You can however set the standard height for the lightbox in the theme files js>prettyPhoto>js>jquery.prettyPhoto.js file (look for default_width and height).



Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘PrettyPhoto: How to set WIDTH of lightbox when displaying INLINE CONTENT.’ is closed to new replies.