Jump to content


This topic is now archived and is closed to further replies.


Lightbox on DMS MediaBox Section

Recommended Posts

mno+    5

Dear all,


I'd like to use on of the features of DMS to show images in a column (refer to attachment). Naturally choose for a MediaBox. Now, do like to have the opportunity to enlarge the image in a lightbox. I'm quite stuck with it. Anyone open for a suggestion?


Thank you!


Other reference info:

Website URL: http://www.gateway.org.hk/programs/gps/camp-introduction/
Framework Version: DMS Free Version
WordPress Version: 3.7.1

Share this post

Link to post
Share on other sites
Danny    1,327



In order to open up a larger version of your image in a lightbox popup effect, you will want to use a plugin such as Lightbox for Wordpress or FancyBox, these plugins usually include a class which you assign to your HTML, which will then allow you to open up a larger image.


The plugins usually include documentation on how to achieve this.

Please search our forums, before posting!

Share this post

Link to post
Share on other sites
mno+    5

Thank you,


I'm actually using fancybox already and it is working on the rest of the site.

Now in the MediaBox settings I added fancybox in the styling Classes. But no effect. I attached some files showing you some settings.


Any idea what im doing wrong?

Share this post

Link to post
Share on other sites
James B    436
James B

Unfortunately those thumbs came out really small so we're unable to see the actual content of the code you've added. Can you re-post from an external source like jing or imgur for us so we can see at a higher resolution.

Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post

Link to post
Share on other sites
Danny    1,327

OK, the issue is that the styling classes field adds classes to the section tag and not individual elements. Therefore, adding the classes there will trigger nothing.


What I recommend is you use the MediaBox and use HTML and add the fancybox class there instead.

  • Like 1

Please search our forums, before posting!

Share this post

Link to post
Share on other sites

  • Similar Content

    • JawDesigns
      By JawDesigns
      Hi everyone,
      Flywheel have reported errors on my clients site 'www.racewaredirect.co.uk' and it's not loading. Can someone please provide some information on how to fix this? The site has never experienced these issues before.
      James Wilson
    • MissT
      By MissT+
      Hi there,
      I've got an issue with 3 websites built with DMS since I migrated them from http to https that I need help with please.
      When any changes are made - e.g. new posts added or existing posts amended - certain sections of the live site seem to break e.g. image headers hang and don't load (b/g on canvas section), sliders hang and don't load (Revslider), flipper section doesn't load.
      Logging in and then clicking 'Edit the site using DMS' seems to fix the problem. Often if I try to open up another browser window to edit the site / re publish I'm unable to as the page wont load / hangs while trying to load.
      Any ideas how to fix this? On a couple of the sites I've installed a caching plugin as I thought it might be a loading speed issue but it's still happening.
      Website URL's can be provided privately.
      Many thanks in advance.
    • BentleyD
      By BentleyD+
      Hey there,
      I am working on BentleyRolling.com. I used grams on MoonbodySoul.com and all the images are cropped to a square, whether they are square or 4:5 when posted on instagram, they still get cropped to a square. This looks way better than some being squares and some being 4:5. Did something change since I designed MoonBodySoul.com with Platform5? Can you help me crop all images to a square on BentleyRolling.com 
      All the best,
    • jeomiland
      By jeomiland+
      I found this topic
      which talks about a similar issue I am having, but a little different. Hope someone can help me out.
      Best way to see the problem is to view http://cassclayton.com/ on Safari (Mac) compared to Firefox or Chrome. You will see the banner just under the fixed menubar has a gap between the menubar and top of the banner. Looking at Inspector, I found:
      <div class="fixed-top-pusher" style="height: 62px;"></div>
      <script> jQuery('.fixed-top-pusher').height( jQuery('.pl-fixed-top').height() ) </script>
      and indeed it seems the jquery is not always working consistently. For instance, if you simply refresh the page in Safari, it will loose the gap and all looks fine, so is it a browser cache issue that is interacting with the jquery? I do have W3 Total Cache installed. There must be a way to tell the code to make sure jquery is up and running and available to do it's majic?
      And perhaps there is just a better way to do this banner? Originally I tried several DMS sections and used the banner image as background, etc... Kept running into problems with resizing and the left/right parts of the image were getting chopped off. It is important the whole image show, so currently I just use a NextBox section with this code:
      <img src="[pl_site_url]/wp-content/uploads/2015/12/CassClayton-blues-tribute-banner.jpg" width="100%" />
      and it looks the way it should. Is there a better way to place a banner graphic under a fixed navbar and make sure the whole banner graphic displays regardless of screensize?
    • oseehys
      By oseehys+
      Hello There,
      So i want to use platform 5 and DMS sections on a single page, i am using a child theme with pinspro as my main theme and i activated platform 5, the only problem am having so far is the fixed option, my navbars are not aligning to their default size, and it will be great if platform 5 header and footer section will function, has anyone used this option, how can i make the best use of platform 5 and DMS on a site