Fixing conflict with Slate theme
Permalink Browser Info Environment
The "Slate" theme already includes the fancybox lightbox in its code, so any other addons you use that have the fancybox will fail because the theme and the addon's copies of fancybox will conflict with each other.
This is an unfortunate annoyance, and the developer of the Slate theme and I are working on a long-term solution to this problem. But in the mean time, you can fix it by modifying the following file on your server:
... and removing the following code (should be lines #14-22):
This is an unfortunate annoyance, and the developer of the Slate theme and I are working on a long-term solution to this problem. But in the mean time, you can fix it by modifying the following file on your server:
SITEROOT/packages/sortable_fancybox_gallery/blocks/sortable_fancybox_gallery/controller.php
... and removing the following code (should be lines #14-22):
public function on_page_view() { if ($this->enableLightbox) { $html = Loader::helper('html'); $bv = new BlockView(); $bv->setBlockObject($this->getBlockObject()); $this->addHeaderItem($html->css($bv->getBlockURL() . '/fancybox/jquery.fancybox-1.3.1.css')); $this->addHeaderItem($html->javascript($bv->getBlockURL() . '/fancybox/jquery.fancybox-1.3.1.pack.js')); } }
Type: | Discussion |
---|---|
Status: | New |
Thanks for this. It really helped. Any luck with it?
I tried to get it fixed for 5.2.2 but unfortunately Andrew did not include it. Long story, but suffice to say I'm starting a petition campaign to get this addressed :)
Please help by clicking the green plus button on this bug report:
http://www.concrete5.org/developers/bugs/5-5-2/blocks-that-use-the-...
Please help by clicking the green plus button on this bug report:
http://www.concrete5.org/developers/bugs/5-5-2/blocks-that-use-the-...
This issue has been fixed as of Concrete5.6, Sortable Fancybox Gallery version 1.17, and Slate Theme version 1.5.2 (you'll need to have all three upgraded for it to work).