[SOLVED][Drupal Colorbox] Colorbox loads duplicate of site theme with inline content

| | 1 min read

A Drupal user had reported that Colorbox loads the duplicate of a site theme with inline content. If you are facing the same issue with Colorbox in your Drupal site then read on to find out the solution.

Here is the solution that solved the issue for the user.

  • Make sure that the class is "colorbox-inline" for the URL otherwise it will show this error.
  • Check for the presence of unwanted ampersands.
  • To make things clear here is the example of a wrong implementation
    <a href="?width=700&height=400&inline=true&#artist-info" class="colorbox-load">meet the artist</a>
  • Here is the correct implementation of the same link
    <a href="?width=700&height=400&inline=true#artist-info" class="colorbox-inline">meet the artist</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.