Iframe banner in Wordpress

W3Schools

rninja

Matched Betting Ninja
Joined
Apr 20, 2017
Messages
326
Likes
124
Points
83
Website
matchedbettingzest.com
#1
A question for the tech-savvy amongst you...

I have some affiliate banners that are iframe.

How do I get these to correctly display in my WordPress site?

I think WordPress is not allowing the code because of something to do with security of iframe links.
 

Jon

Administrator
Staff member
Joined
Oct 17, 2013
Messages
23,805
Likes
2,092
Points
283
Age
37
Location
Leeds
#2
A question for the tech-savvy amongst you...

I have some affiliate banners that are iframe.

How do I get these to correctly display in my WordPress site?

I think WordPress is not allowing the code because of something to do with security of iframe links.
Can you not put them in with <script> </script> around the code?
 

rninja

Matched Betting Ninja
Joined
Apr 20, 2017
Messages
326
Likes
124
Points
83
Website
matchedbettingzest.com
#3
I'll give it a look, but wouldn't have a clue how it works to be honest. I'll check the WordPress code editor part.
 

Jon

Administrator
Staff member
Joined
Oct 17, 2013
Messages
23,805
Likes
2,092
Points
283
Age
37
Location
Leeds
#4
I'll give it a look, but wouldn't have a clue how it works to be honest. I'll check the WordPress code editor part.
Which banner is it you are trying to put into your site?

I'm sure I just tend to click on the Wordpress I just click on 'Text' rather than 'Visual' in the editor and then just copy the code in ;)
 

rninja

Matched Betting Ninja
Joined
Apr 20, 2017
Messages
326
Likes
124
Points
83
Website
matchedbettingzest.com
#5
A banner starting with the html wording iframe.

It just comes up as a blank space when you copy and paste the iframe code in to text editor.
 

Jon

Administrator
Staff member
Joined
Oct 17, 2013
Messages
23,805
Likes
2,092
Points
283
Age
37
Location
Leeds
#6
A banner starting with the html wording iframe.

It just comes up as a blank space when you copy and paste the iframe code in to text editor.
It will do when you are in preview mode. have you actually published the page?
 

rninja

Matched Betting Ninja
Joined
Apr 20, 2017
Messages
326
Likes
124
Points
83
Website
matchedbettingzest.com
#7
I tried it on an already published page and there was still a blank space.
 

Jon

Administrator
Staff member
Joined
Oct 17, 2013
Messages
23,805
Likes
2,092
Points
283
Age
37
Location
Leeds
#8
I tried it on an already published page and there was still a blank space.
Link me up to which page it is with the code already on there
 

Jon

Administrator
Staff member
Joined
Oct 17, 2013
Messages
23,805
Likes
2,092
Points
283
Age
37
Location
Leeds
#10

rninja

Matched Betting Ninja
Joined
Apr 20, 2017
Messages
326
Likes
124
Points
83
Website
matchedbettingzest.com
#11
OK you've got the code around that all looking fine

Can you make any other WH banners appear?

If not it may be worth dropping your account manager an email over at Gambling Affiliation
Cannot get any other iframe banners to appear at all anywhere on site
 

Jon

Administrator
Staff member
Joined
Oct 17, 2013
Messages
23,805
Likes
2,092
Points
283
Age
37
Location
Leeds
#12

JesseEverAfter

Well-Known Member
Joined
Feb 18, 2017
Messages
154
Likes
48
Points
58
Location
Bristol
#13
I've just had a look - in this case it's because the William Hill banner (and a couple of the others by the looks of it) are being loaded over the unsecure http protocol rather than the secure https protocol.

As the browser is loading your website as secure it won't load anything which is not being served over https (if you look at the source the banner is pointing to you'll see it's missing the s after http

To confirm it load this webpage without the s after http (I won't post a link as I wouldn't want Google to see a non https version) and all the banners should load (at least they are on my computer). I could be barking up the wrong tree but this was the only error the Chrome developer console was flaggng up.

I'd ask your affiliate manager if they have the banners available on a secure URL.
 

Jon

Administrator
Staff member
Joined
Oct 17, 2013
Messages
23,805
Likes
2,092
Points
283
Age
37
Location
Leeds
#14
ah yeah try changing the iframe links from http to https
 

TMSPRESTO

TotallyBlogging

Members online

Forum statistics

Threads
4,947
Messages
139,672
Members
7,274
Latest member
ExtremeBooters

Latest profile posts

Amazon just contacted me regarding my seller account... I wasn't aware I still had one as I last used it in 2004!
Can I believe I've actually just bought some proper lights for LEGO animations - a bit of a short sale on Amazon! :D
So Respondent have contacted me to take part in a face to face interview next week.
Excited & should take me over £100 goal for January....
I really should get back into Matched Betting - I'm pretty sure most of what I make goes to Odds Monkey as I don't bother cancelling the subscription - oops!
So as a newbie here I'm still trying to get my head round it all & which is the way to channel my time. I've signed up to Prolific & Resondent thanks to @Jon
I've earned a few 3.00 on Prolific so far & waiting on surveys to come back from Respondent that I've applied for, so fingers crossed.
I have a few items listed on Ebay which I hope I will put to my 1st try at MB, scares me to be honest.