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:
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
jordanlev
View Replies:
wagdi replied on at Permalink Reply
wagdi
Thanks for this. It really helped. Any luck with it?
jordanlev replied on at Permalink Reply
jordanlev
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-...
jordanlev replied on at Permalink Reply
jordanlev
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).

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.