If you are looking to add the built in lightbox that comes with OceanWP to your custom theme here is how to do it.
On your image link add the class “oceanwp-lightbox”. So it should look like this:
<a href="yourlink" class="oceanwp-lightbox"><img src="yoursrc" /></a>