91
Support / Re: News ticker header not ticking ?
Last post by Spuds -To fix this you will need to edit the index.template.php file for your theme(s). In that file you will find a function function template_news_fader then find the following
Code: (find) [Select]
addInlineJavascript('and replace it with this.
document.addEventListener("DOMContentLoaded", () => {
if (typeof Elk_NewsFader !== \'undefined\') {
$(\'#elkFadeScroller\').Elk_NewsFader(' . (empty($settings['newsfader_time']) ? '' : '{\'iFadeDelay\': ' . $settings['newsfader_time'] . '}') . ');
}
});', true);
Code: (replace) [Select]
addInlineJavascript('
document.addEventListener("DOMContentLoaded", () => {
if (typeof $.fn.Elk_NewsFader !== \'undefined\') {
$(\'#elkFadeScroller\').Elk_NewsFader(' . (empty($settings['newsfader_time']) ? '' : '{\'iFadeDelay\': ' . $settings['newsfader_time'] . '}') . ');
}
});', true);
All we are doing is adding $.fn. in front of Elk_NewsFader .... the error is that Elk_NewsFader is a jquery function so we need to look for it in the jquery space.