Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello,
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:
http://tales-central.com/?q=talesaudio
You'll notice that the slideshow just DOESN'T scroll anymore.
Any ideas..?
Comments
Comment #1
etcbbu CreditAttribution: etcbbu commentedAny idea what the issue may be, or some code I might could check or something..?
Comment #2
danpros CreditAttribution: danpros commentedHi,
Please read this comment.
Dan
Comment #3
etcbbu CreditAttribution: etcbbu commentedI'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:
http://tales-central.com/drupal/templateasis.jpg
to making it look like this:
http://tales-central.com/drupal/templatechange.jpg
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:
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?
Comment #4
etcbbu CreditAttribution: etcbbu commentedSo, was I wrong? All I did in template.php was delete
Was that the wrong thing to do?
Comment #5
Homer CreditAttribution: Homer commentedIt seems like I've solved this problem by adding a line showing a path to script in danland info file in danland theme folder.
Before:
After:
You can get jquery.cycle.lite.js from jQuery Cycle Plugin.
Then I'm sure your slideshow should work on any page. Good luck!
Comment #6
501sttrooper CreditAttribution: 501sttrooper commentedHope 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.
Thanks!
501st Trooper