Theme options Javascript not refreshing

Hi,

I have a website (https://mepis.eu/) and there are links on icons MePIS UDG, MePIS RM, MePIS PDM and so on.
I have a JS code in X > Theme Options.

 function slider_link_1(){
  window.open("/solutions/mepis-udg/","_self");
 }
 function slider_link_2(){
  window.open("/solutions/mepis-rm/","_self");
 }
 function slider_link_3(){
  window.open("/solutions/mepis-pdm/","_self");
 }
function slider_link_4(){
  window.open("/solutions/mepis-opex/","_self");
   }
 function slider_link_5(){
  window.open("/solutions/mepis-mes/","_self");
 }
 function slider_link_6(){
  window.open("/solutions/mepis-lb/","_self");
 }
 function slider_link_7(){
  window.open("/solutions/mepis-energy/","_self");
 }
 function slider_link_8(){
  window.open("/solutions/mepis-gencode/","_self");
 }

The links are updated in the code, but on the site they remain the same. I tried deleting cache via Total cache W3 and also deleted browser cache. I removed the code and refreshed the site and the links remain on the icons even when the code is not there.

Any idea what should I try?

Thanks in advance.

Best regards
Luka

Hello Luka,

Thanks for posting in!

You have JS function codes. They are correct. Nothing happens because these functions needs to be triggered by an event or initiated somewhere within the page by on load or resize. Are you using these functions as action when a user interacts with an element of the page? If you want to attach these functions to your slider, you may need to check out this documentation:

Hope this helps.

Thanks for your quick reply.

Your information helped, I figured it out.

Best regards
Luka

You are most welcome Luka!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.