Hey there Mitemd,
Hope you’re well! π
I want to apply a lightbox to my gallery section. Is that even possible with a plugin?
Just tested this with my own install with this plugin: https://wordpress.org/plugins/lightbox/ and it is working.
Just don’t forget to set the href attribute of your image to the url of image. like this:
<a href="http://example.com/wp-content/themes/onetone/images/g1.jpg"><img class="port-img" src="http://example.com/wp-content/themes/onetone/images/g1.jpg" alt="" /></a>
This is the result I got: http://prntscr.com/5vujp3
Hope it helps! π
Take care,
Calvin
Thread Starter
Mitemd
(@mitemd)
Awesome, maybe I buy the plugin. The lightbox is a bit small, but it works fine.
I tried some other lightbox plugins, but they didn’t work. Strange.
Hey there Mitemd,
Hope you’re well! π
Awesome, maybe I buy the plugin
I think the free version is enough for you but it’s up to you of course. π
The lightbox is a bit small, but it works fine.
The lightbox depends on the original size of the image so I suggest you make it larger if you have small one.
Hope it helps! π
Take care,
Calvin