Not sure if this is the right place to ask for suggestions, but here goes:
I've taken over rebuild of a Drupal 7 site. The existing live site has a couple items that open with Colorbox 7.x-2.10. The theme seemed to be based off of a bootstrap theme.
My Dev site is a completely new theme, built from scratch. Now that I'm tackling the Colorbox portions, I notice the pages that were opening in colorbox, no longer do. I'm using the same code, just with a new theme, and the same plugin, so everything that should be there is probably there.
But, I'm a newbie with Drupal, so anything's possible. Is there something different I need to do in the theme? Any suggestions of what to look for? Is there something I need to do in template.php, or something like that?
So far, I've made sure the js and css for colorbox are being referenced in the source code. I've got jQuery Update 7.x-2.7 installed. This is a multilingual site, but I suppose that's not a problem, as it's working fine in the production site.
The code I'm testing, is in a block on the home page: <a class="colorbox-node" href="newsletter?width=600&height=600"> I want the newsletter</a>
It goes to the page in question, but just as a normal link to the "basic page".
Comments
Comment #2
frjo CreditAttribution: frjo commentedHave you installed the Colorbox plugin in sites/all/libraries and the libraries module?
Comment #3
turpentyne CreditAttribution: turpentyne commentedJust double checked and, yes, that's where it's installed.
Comment #4
turpentyne CreditAttribution: turpentyne commentedComment #5
frjo CreditAttribution: frjo commentedNow I notice that the class name in your example link is "colorbox-node". That indicates that a separate module, https://www.drupal.org/project/colorbox_node, was used. Colorbox node extends he Colorbox module with support for opening nodes in a Colorbox.
Comment #6
Neslee Canil Pinto