Custom JS

  • Posted in : Read WP
  • mumair
    Participant

    I am trying to add custom js to my READ theme.

    I have put all the JS lines in a file “analytic.js” and placed in the read’s js folder “wp-content/themes/read/js”.

    (hope that this was right thing to do?)

    Now i am trying to figure out, how can i reference to this file in the External JS section of Theme options > Style

    Between scripts tag should I add

    src="https://mywebsite.com/wp-content/themes/read/jsyourscript.js"

    OR

    src="yourscript.js"

    I would appreciate any guidance I can get on this. Thanks

    serkan
    Moderator

    Hi mumair,
    You can reference to this file in the external Js section like this;

    <script src="yourscript.js"></script>

    Thanks

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

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register