I am using colorbox in a responsive website.
I have a request : I wish that Colorbox automatically adjusts itself to the size and orientation of the screen / mobile devi
A solution I found on the Drupal site uses Colorbox's OFF function:
if (window.matchMedia) { // Establishing media check width700Check = window.matchMedia("(max-width: 700px)"); if (width700Check.matches){ $.colorbox.remove(); } }
You would need to re-initiate colorbox over a certain window size.