Home › Forums › Porto Template › Trying to activate the Style Switcher
This topic contains 2 replies, has 2 voices, and was last updated by Waterfield 1 year ago. This post has been viewed 539 times
I added master/style-switcher/style.switcher.html right after vendor/jquery-cookie/jquery-cookie.min.js on page-services.html
Got an error style.switcher.html:2 Uncaught SyntaxError: Unexpected token <
style.switcher.html:2 Uncaught SyntaxError: Unexpected token <
Hello, the file that must be added is not an HTML file, it’s a JS file:
<script src="master/style-switcher/style.switcher.js" id="styleSwitcherScript" data-skin-src=""></script>
Let me know if the problem persists.
Note that you cannot open the file directly on the browser, you need a local server (localhost) or upload to the remote server via FTP.
omg.. sorry for the inattention)