Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Installation/Upgrade Issues (http://forum.bytesforall.com/forumdisplay.php?f=58)
-   -   How to integrate scripts into posts (http://forum.bytesforall.com/showthread.php?t=23480)

redacter May 17, 2016 03:14 PM

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!

juggledad May 18, 2016 06:14 AM

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 07:58 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.