How to integrate scripts into posts
I have a question that you may or may not be able to answer, but if you can $100 to you. Anyway, I want to integrate the following script into my theme so the video it generates appears in every post. I hardcoded the script after the <body> tag. It works but the video appears outside the page at the top of the browser. (see here: http://www.theimproper.com/134496/ro...r-trailer-see/)
I'm told the script needs a "selector" to identify posts. This is usually involves a <div> tag. But I can't find the appropriate selector. Ideally, this video will appear after the 5th paragraph in each post. Here's the code: <div class="vdb_player vdb_568927c7e4b098feda361f34554203dbe4b064656db31e 16" vdb_params="m.o2inline=inview&m.position=5&m.selec tor=%23lipsum%20p"> <script type="text/javascript" src="//delivery.vidible.tv/jsonp/pid=568927c7e4b098feda361f34/554203dbe4b064656db31e16_bein.js?m.o2inline=inview &m.position=5&m.selector=%23lipsum%20p"></script> </div> I need to replace %23lipsum%20p" after selector= with the identifier for a post in atahaulpa. Or if there is any other way to do this, that would work, too. The script will work without a selector, I just can't place it. Any help would be greatly appreciated. Many, many thanks! |
I would probably look into making a plugin. If you want it to always show after the 5th paragraph, you eithor have to manually embed a shortcode that would trigger the plugin or have teh plugin count the paragraphs and then put in the video.
|
All times are GMT -6. The time now is 09:43 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.