Answered

Javascript conflict with wordpress theme

Hi,

I am trying to implement the Freshdesk widget on my site: http://www.reservesinsight.com. It doesn’t work with the Create theme by Themetrust and this seems to be connected with one-page scrolling and the way this has been implemented in the theme. Note: it works in any other theme when I switch to for example Twenty Fifteen etc.

In the browser Development Console I can see the following error when I click on the Freshdesk widget: TypeError: scroll is not a function

Any idea how this can be resolved?

All the best,
Erlend


Best Answer

Hi Erlend,


I see that you've implemented the Freshchat widget on your site. In case if you're still looking to integrate the feedback widget for the users to submit tickets, the information below can help you overcome the error specified.


We use scroll ,which is a native javascript function. We've seen cases in the past where this variable can be set to false by another .js file added to the site. You can check this with your web team to see if they're setting the value for variable scroll to false in any of the functions defined in the page.


Cheers!

1 Comment

Answer

Hi Erlend,


I see that you've implemented the Freshchat widget on your site. In case if you're still looking to integrate the feedback widget for the users to submit tickets, the information below can help you overcome the error specified.


We use scroll ,which is a native javascript function. We've seen cases in the past where this variable can be set to false by another .js file added to the site. You can check this with your web team to see if they're setting the value for variable scroll to false in any of the functions defined in the page.


Cheers!

Login or Signup to post a comment