Chukwuemeka Madusha
asked on
Embedding Iframe jqery code on wordpress or html page not working.
So i have a site. www.lifewalktravels.com
Its a wordpress site. Its a travel site.
So i am trying to embed a flight booking search form on this page.
http://lifewalktravels.com/test
The Feeds site has given me the codes and instructions but i cant get it to work.
They gave me a wordpress version and a non wordpress version.
I tried both but the form wont display in the page.
I have followed the instructions, created a .js file and called it on the page with the given code yet nothing.
The feed site manager is unwilling to to help.
I have attached both codes here.
Can someone help me, i can also provide a login to wordpress, if needed.
=======================
Lifewalktravels-wordpress.txt
Lifewalktravels-non-wordpress.txt
Its a wordpress site. Its a travel site.
So i am trying to embed a flight booking search form on this page.
http://lifewalktravels.com/test
The Feeds site has given me the codes and instructions but i cant get it to work.
They gave me a wordpress version and a non wordpress version.
I tried both but the form wont display in the page.
I have followed the instructions, created a .js file and called it on the page with the given code yet nothing.
The feed site manager is unwilling to to help.
I have attached both codes here.
Can someone help me, i can also provide a login to wordpress, if needed.
=======================
Lifewalktravels-wordpress.txt
Lifewalktravels-non-wordpress.txt
ASKER
ok, will put up ssl. also this site is just a staging site. i am just testing the embed on that test page. no need to make it home. Thanks anyways
ASKER
Please can anyone here help me?
It looks like WP is stripping out the <script> tag. Your iframe is present but the script needed to go with it is not.
To add the JavaScript you can
1. Disable filtering of scripts - not a great idea
2. Add hook to functions.php to enqueue script
3. Use Advanced Custom Fields to add script then add to template
There are various ways this can be done - but your base problem here is the javascript file is not being added to the page - WP is stripping it out.
To add the JavaScript you can
1. Disable filtering of scripts - not a great idea
2. Add hook to functions.php to enqueue script
3. Use Advanced Custom Fields to add script then add to template
There are various ways this can be done - but your base problem here is the javascript file is not being added to the page - WP is stripping it out.
This question needs an answer!
Become an EE member today
7 DAY FREE TRIALMembers can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
I'd also suggest as a first step, you wrap your site in SSL, as trying to get all this working + then switching to SSL, will pile on another completely new set of problems.
And shortly, all major browsers will start reporting non-SSL pages are suspicious (same message as malware infected sites), so if you plan on having any visitors, you'll have to run SSL shortly anyway.