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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mabbus21’s picture

Issue summary: View changes

This happens because the slider div isn't there.

I would wrap the slider function in an if statement and check if slider exists:

if ( $('#slider').lengh ) {
     $('#slider').nivoSlider();
}

This fixed it for me.

vidit.anjaria’s picture

Assigned: Unassigned » vidit.anjaria
vidit.anjaria’s picture

Assigned: vidit.anjaria » Unassigned
Priority: Normal » Minor
Status: Active » Needs review
FileSize
0 bytes

providing a patch for this issue, so it would be easy to port into working branch.

krina.addweb’s picture

Status: Needs review » Needs work

@vidit.anjaria Your patch din't works for me.

hargobind’s picture

Version: 7.x-1.4 » 7.x-1.5
Component: User interface » Code
Status: Needs work » Needs review
FileSize
968 bytes

Attached is a patch that checks to see if the nivoSlider function exists.

hargobind’s picture

FileSize
971 bytes

Fixed a typo in #5.