If you'll notice on my main website:


The main slideshow at the top of the page scrolls just fine, which is what this slideshow that came with this theme is supposed to do.

But if you go to any sub-pages, like for instance, say, this one:


You'll notice that the slideshow just DOESN'T scroll anymore.

Any ideas..?


etcbbu’s picture

Any idea what the issue may be, or some code I might could check or something..?

danpros’s picture

Status: Active » Closed (fixed)


Please read this comment.


etcbbu’s picture

I'm getting the problem that seaurchin mentioned, where the slideshow scrolls through images on the front page, but not on the rest of the pages. They just show a static image.

I'm pretty sure that my page.tpl.php file is fine and good, and changed how it needs to be.

But now with my template.php file, I tried to change it from being this way:


to making it look like this:


But then when I tried to go to my site, I just got a php error and my site wouldn't load at all. It said I had an error in template.php on a certain line.

What am I doing wrong? I took the statement you said earlier, which was:

if (drupal_is_front_page()) {
  drupal_add_js(drupal_get_path('theme', 'danland') . '/scripts/jquery.cycle.all.js');

to this
drupal_add_js(drupal_get_path('theme', 'danland') . '/scripts/jquery.cycle.all.js');

And, basically, as you can see with those images I posted, I just deleted the

if (drupal_is_front_page()) {

in line 29, but that seems to have created an error.

What did I do wrong? What exactly needs to be changed in template.php?

etcbbu’s picture

So, was I wrong? All I did in template.php was delete

if (drupal_is_front_page()) {
  drupal_add_js(drupal_get_path('theme', 'danland') . '/scripts/jquery.cycle.all.js');

Was that the wrong thing to do?

Homer’s picture

It seems like I've solved this problem by adding a line showing a path to script in danland info file in danland theme folder.

scripts[] = scripts/hoverIntent.js
scripts[] = scripts/superfish.js
scripts[] = scripts/jquery.min.js


scripts[] = scripts/jquery.cycle.lite.js
scripts[] = scripts/hoverIntent.js
scripts[] = scripts/superfish.js
scripts[] = scripts/jquery.min.js

You can get jquery.cycle.lite.js from jQuery Cycle Plugin.
Then I'm sure your slideshow should work on any page. Good luck!

501sttrooper’s picture

Hope someone can help out.

Problem: Had my slideshow working on every page of my site. I made some additions with content, etc. and now my slide is stuck on the first image and will not scroll.

Steps Taken: I've followed all the instructions step-by-step and I know that my code it correct and have cleared cached. I've tried replacing my images with the originals, tried removing all code and re-adding and have also tried the suggestion posted by Homer above. Nothing has worked.

I'm dead in the water with a site that I need to get launched. Any help or suggestions are much appreciated.

501st Trooper