Page 1 of 1

apply Colorbox effect on all pages

Posted: Sat Oct 15, 2016 1:40 am
by mjutras
I have OC 1.5.6 with theme Yoobeat
When I go to a product page I click on the product image and I see the colorbox effect properly.

When I look at the source code on that page I see in the headder:

Code: Select all

<link rel="stylesheet" type="text/css" href="catalog/view/javascript/jquery/colorbox/colorbox.css" media="screen" />
<script type="text/javascript" src="catalog/view/javascript/jquery/colorbox/jquery.colorbox-min.js"></script>
And I also see at the bottom something like this within a script tag:

Code: Select all

$(document).ready(function() {
		overlayClose: true,
		opacity: 0.5,
		rel: "colorbox"
Now I have a category page in which I have some text with links to some images, lots of them throughout the text.
However when I am on the category page none of these codes appear in the source.

Ive tried adding the css and js lines to the header.tpl and the other code to the category.tpl and I can see it in the source code but it is not working.

I am probably way off, some guidance would be appreciated.

Re: apply Colorbox effect on all pages

Posted: Sat Oct 22, 2016 12:08 am
by mjutras
Just for the record.
I backup the files and database and then tried to upgrade to the latest OC version but that didn't work out at all and was not expecting it to work as I had a theme based on version 1.5.6

So I then restored files and database and it is now working.

I can't explain how or why but it works now.