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.
I noticed when I use this theme and even on your own demo site I get a js error.
Line: 26
Error: Object doesn't support property or method 'nivoSlider'
The error does not exist on the home page, but when you go to other pages the error is there.
Comment | File | Size | Author |
---|---|---|---|
#6 | company--nivoslider-js-error-1816114-6.patch | 971 bytes | hargobind |
Comments
Comment #1
mabbus21 CreditAttribution: mabbus21 commentedThis happens because the slider div isn't there.
I would wrap the slider function in an if statement and check if slider exists:
This fixed it for me.
Comment #2
vidit.anjaria CreditAttribution: vidit.anjaria as a volunteer and at Faichi Solutions Pvt Ltd for Faichi Solutions Pvt Ltd commentedComment #3
vidit.anjaria CreditAttribution: vidit.anjaria as a volunteer and at Faichi Solutions Pvt Ltd for Faichi Solutions Pvt Ltd commentedproviding a patch for this issue, so it would be easy to port into working branch.
Comment #4
krina.addweb CreditAttribution: krina.addweb at AddWeb Solution Pvt. Ltd. commented@vidit.anjaria Your patch din't works for me.
Comment #5
hargobindAttached is a patch that checks to see if the nivoSlider function exists.
Comment #6
hargobindFixed a typo in #5.