Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Installation/Upgrade Issues »

How to integrate scripts into posts

Old May 17, 2016, 04:14 PM
14 posts · Oct 2009
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>

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!

Last edited by redacter; May 17, 2016 at 04:17 PM.
Old May 18, 2016, 07:14 AM
juggledad's Avatar
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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.
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support


atahualpa posts, pages, scripts

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] jQuery plugin scripts not working vCopia Plugins & Atahualpa 1 Mar 28, 2011 08:09 AM
How to integrate pages with categories MWilson Plugins & Atahualpa 4 Jan 28, 2011 09:47 PM
Menu Bar Drop-Down Menus Hid by Scripts adum Page & Category Menu Bars 1 Nov 28, 2009 05:52 AM
Is is possible to integrate a forum within the theme ? ciolo Plugins & Atahualpa 5 Mar 22, 2009 10:39 AM

All times are GMT -6. The time now is 03:17 AM.

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