Shortcode problems
-
Hello.
I’ve created a plugin to make a shortcode like this:
[navid id="VIDEOID"]
It then outputs this:
<iframe id="navid-player" type="text/html" width="720" height="405" src="https://www.youtube.com/embed/VIDEOID?disablekb=1&rel=0&showinfo=0&color=white" frameborder="0" allowfullscreen></iframe>
That is a slightly modified version of the YouTube player.
So when I create a post in my theme with the post format “Video”, the video should be moved to the “master header” using JavaScript in the theme.
For some reason when I use the shortcode, the player won’t be moved to the master header, but when I paste the
iframe
straight to the code, the video is moved to the “master header”.Does anyone know why this happens?
Thanks for any help!
Ps. I’m using the Cubic theme, and posted the question in the Cubic forum. I got directed to this forum by one person in that post.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Shortcode problems’ is closed to new replies.