- This topic has 20 replies, 2 voices, and was last updated 11 months, 2 weeks ago by David.
October 6, 2019 at 8:00 pm #1027963Anthony
I’m trying to insert an Amazon affiliate native ad inside a hook to display it just before the comments container. I can’t get it to show up.
There’s 4 types of ads. two of them are just links, one is an iframe, but this native one is a script.
Can you not show script unless it’s in the header or footer script hook?October 7, 2019 at 5:20 am #1028227DavidStaffCustomer SupportOctober 7, 2019 at 8:06 am #1028498Anthony
I ended up putting one of the other four types of ads in there until I’m able to show the <script> inside the hook.
The four ad types are “Text, Image, Text & Image and Native Ads”.
Native ads is a script while the other three are text and iFrames.October 7, 2019 at 8:52 am #1028540DavidStaffCustomer SupportOctober 7, 2019 at 8:02 pm #1028931Anthony
It’s not working in any hook.
It’s an Amazon Associates – Native Shopping Ad.
It’s an <iFrame>.
I was hoping to display the Native Shopping Ad using a hook to insert it onto my pages.
AnthonyOctober 8, 2019 at 7:30 am #1029276DavidStaffCustomer Support
Can you share the code you’re adding here?
Before submiting – if you can highlight the code and click the Code Button to preserve its formatting.
Aside of that – silly question have you selected the correct display rules….October 9, 2019 at 8:17 am #1030395Anthony
This is the script here:
I have it set to display on all “recipes” which is a custom post.
AnthonyOctober 9, 2019 at 8:28 am #1030411DavidStaffCustomer Support
The hook is working as i can see the script in the markup.
But there is an error in the console related to the
onejsscript that is being called.
You would need to speak with the provider to find out what the possible causes are.
Before doing so worth clearing and disabling any cache plugins just in case there causing a conflict.October 9, 2019 at 8:39 am #1030424Anthony
Am I contacting cloudfare, my host, or the recipe plugin developer?
Seems to be a few console errors I was unaware of.
ThanksOctober 9, 2019 at 8:51 am #1030429DavidStaffCustomer SupportOctober 9, 2019 at 9:00 am #1030433DavidStaffCustomer Support
I had a look around and this is the amazon guide to adding them:
They recommend using the AdInserter plugin – not sure why that would make a difference but worth giving that a shot to see if it works.
Also what happens if you add the script within the post content itself?October 16, 2019 at 11:00 am #1036521Anthony
Sorry for the delay.
It’s not working right in the content either, weird.
It’s annoying. About a month or two ago I could paste these and I swear they worked.October 16, 2019 at 11:14 am #1036530Anthony
After digging around I found this answer here:
Which lead to this:
Which I’m having a hard time understanding.October 16, 2019 at 11:18 am #1036534DavidStaffCustomer SupportOctober 16, 2019 at 11:20 am #1036535Anthony
I pasted the JS error into Google.
- You must be logged in to reply to this topic.