• Resolved Jomez

    (@jomez)


    I want to add a small simple jquery-script to my site.
    I checked the “Site-specific JS” checkbox; but when I add my scripts in script-starter.js nothing happens. Even an alert-message for testing does not respond. Can someone tell me if I am doing something wrong in adding javascript?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Are you using some browser developer tool like Firebug so that you can get access to the browser’s console log?

    Thread Starter Jomez

    (@jomez)

    Okay; I just found out I have to rename script-starter.js to script.js.
    Now it works.
    Thanks

    Hi, I have similar issue:

    I checked the “Site-specific JS” checkbox, I rename script-starter.js to script.js and add the code in the footer (<script type=’text/javascript’ src=’https://my-site.com/wp-content/themes/boilerplate/js/script.js’></script&gt;) but it still not working… what else do I need to do?

    the version of my theme is 4.4.1

    Theme Author Aaron T. Grogg

    (@aarontgrogg)

    @joga3001: you shouldn’t have to add any code to the page, checking the “Site-specific JS” checkbox should add the <script> tag to the page for you.

    and that should just do it…

    you have a URL i could look at?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘adding javascript’ is closed to new replies.