[SOLVED][Drupal Colorbox] How to make the images in a page open in Colorbox?

| | 1 min read

Many Drupal users wanted to know how to make the images in a page open in Colorbox. If you need to make Colorobox open all the images in a page in your Drupal website then read on to find out how.

Here is how to add Colorbox to your images.

  • First make sure you have the Colorbox module and the Colorbox plugin installed correctly in your Drupal site.
  • Next you need to modify the image links in the page in question to make sure Colorbox recognizes them.
  • The basic logic is that you have to make your image in to a link that points to the larger version of the image.
  • Next add class = "colorbox" to the link.
  • You can do this manually or you could use the Insert module which has built in support for Colorbox.

Hope that helps.

The easiest way to solve a Drupal issue is to hand it to the Drupal experts. We can provide a wide range of Drupal services to help you maintain and manage your Drupal websites. Get in touch with us to know more.