Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Template Questions

Search box causing Javascript to fail (content slider)


Reply

3 Posts   1379 Views

Avatar
vivilanco

12 April 2011 at 11:16pm (Last edited: 12 April 2011 11:53pm), Community Member, 19 Posts

Hi all...

I have a content slider in on one of my pages I am building but when I add the search element

FulltextSearchable::enable();

in _config.php in my site it kills the slider ability.

http://clients.vivilanco.com/sandbox/greenhomes/ - has the search element in _config and slider is broken.

I was wondering if anyone has had anything similar to this / could offer to shine a light on my issue...
or has developed a content slider for SS similar to this?

Thanks

Avatar
kylehudson00

19 May 2011 at 5:07pm Community Member, 22 Posts

Is this a jQuery based slider? If so, try encasing your script within the following:

<script type="text/javascript">
(function($) {

<Your scripting>

})(jQuery);   
</script>

Avatar
Richi

4 November 2011 at 11:39pm Community Member, 16 Posts

Thank you kylehudsonoo, your solution solved the problem for me!