• Resolved AliriusAmstad

    (@aliriusamstad)


    I have 0 coding experience which is why I chose WP in the first place. I have a javascript code that changes for each page I have in WP. I need something that I can cut and paste and someone to tell me exactly where I paste it in the WP page so that I can run my videos on each page. I need this in as simple a way as possible so that I can get it right the first time. Thanks in advance for any help you can give me.

    Eric Terrell

Viewing 6 replies - 1 through 6 (of 6 total)
  • Do I read this correctly, like:

    You have a Javascript code that changes for each page you have in WP?(changes what? the images per page? the text?)

    You need something that you can paste(i thought you have a code?) or you have a code that you want to paste on your WP that can run your videos on each page?

    -Okay, you want a code(Javascript) that you can put on your WP. Code/s that will run your videos on each page. And each page has a different videos?

    Thread Starter AliriusAmstad

    (@aliriusamstad)

    Sorry there DestinyMaker,

    I guess I did not get that as clear as I thought I had it.

    Right now as it is, when I paste the javascript code for the video player it ends up printing the code as if it were a post rather than running the player that it is supposed to run. Each page gets a different video and hence a different javascript code. What I need is some code that I can insert that will let me run my javascript code of the video player on my page. The video player allows for certain functionality that I don’t get with using youtube. I hope this clears things up for everyone but if you still have questions, feel free to ask and I will be more than happy to answer them so I can get this problem fixed.

    Eric Terrell

    Can you post the javascript code for the video player here?

    It will become a post(or should I say, text) rather than a player if you put the code for a post in “visual” when creating a post. You should click first the “text”:

    https://s15.postimg.org/50wx5z2iz/image.png

    And about a different javascript code that you want for each page, I really can’t help you with that, let’s just wait for someone who has more experience on that.

    Thread Starter AliriusAmstad

    (@aliriusamstad)

    Here is the script for one of my videos. Each video has it’s own unique code to it.

    <script type="text/javascript" src="https://explaindiovideosuite.com/embed.php?v=d0360cd9&statTrack=&w=1280&h=720"></script><script type="text/javascript" src="https://explaindiovideosuite.com/js/jquery.fitvids.js"></script>

    Thread Starter AliriusAmstad

    (@aliriusamstad)

    Actually, DestinyMaker, I think you solved my problems. This is great and it is working like I needed it to. Thank you!!!

    I didn’t think I’ve done anything. But in case you do have solved the problem. Good job! ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘injecting javascript into each page’ is closed to new replies.