Home Forums Porto Template Trying to activate the Style Switcher

This topic contains 2 replies, has 2 voices, and was last updated by  Waterfield 7 months ago. This post has been viewed 364 times

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #10020567

    Waterfield
    Participant

    Hello!

    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 <



    Template Version: 5.7.1
    #10020573

    Support
    Keymaster

    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.

    Kind Regards,

    Jonas


    #10020583

    Waterfield
    Participant

    omg.. sorry for the inattention)


Viewing 3 posts - 1 through 3 (of 3 total)