[SOLVED][Drupal Colorbox] Colorbox always showing the same title

| | 1 min read

A few Drupal users have encountered a situation where Colorbox always shows the same title regardless of the image within it. If you are encountering the same situation in your Drupal site then read on to know the solution.

This scenario will occur if you you have constructed each link you wish to open in Colorbox in a different way.

  • You should change all of them to match the format below.
    <a class="colorbox-load" href="http://example.com/?width=1000&height=600&iframe=true" title="The title here">Link text here</a>
  • To group the items together add a rel attribute with the same value to them all as shown in the example below
    <a class="colorbox-load" href="http://example.com/?width=1000&height=600&iframe=true" title="The title here" rel="gallery-external">Link text here</a>

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.