Issue in adding Booking.com Affiliate Code

Posted in: Newspaper
Post count: 6

Hi,

I have to add booking.com products affiliate products code in my posts. when i add code in code editor and publish post, post only shows text “Booking.com” and link point to booking.com. Infact this code should result in showing a product box of booking.com

Code is correct as i havhe copied it from my Booking.com affiliate account. below is the code.

<ins class=”bookingaff” data-aid=”1520842″ data-target_aid=”1520842″ data-prod=”rw” data-width=”0″ data-height=”0″ data-lang=”en” data-show_rw_logo=”1″ data-show_rw_badge=”1″ data-show_rw_text=”1″ data-show_rw_border=”1″ data-hid=”1355327″>
<!– Anything inside will go away once widget is loaded. –>
Booking.com
</ins>
<script type=”text/javascript”>
(function(d, sc, u) {
var s = d.createElement(sc), p = d.getElementsByTagName(sc)[0];
s.type = ‘text/javascript’;
s.async = true;
s.src = u + ‘?v=’ + (+new Date());
p.parentNode.insertBefore(s,p);
})(document, ‘script’, ‘//aff.bstatic.com/static/affiliate_base/js/flexiproduct.js’);
</script>

I dont know how to resolve this issue. please help.

Post count: 35449

Hi,

Please check this similar article for amazon products -> https://en.support.wordpress.com/adding-amazon-com-affiliate-links-to-your-wordpress-com-site/

Thank you!

Post count: 6

Hi,

the article which you shared does not help my case. it is for HTML code only. but i think my code is a jav script.
I have already tried it. i place my code in post after opening code editor in wordpress. but issue is still there. please reply to my perticular case.

Post count: 35449

Hi,

Please make sure that your code is working on default theme of WordPress.
If your code is working on default WordPress theme should work with our theme too, you need to set the html code in post -> https://www.screencast.com/t/lGvodcwc77 and the java-script code in Theme panel>Custom code>Custom java-script -> https://www.screencast.com/t/hUZ9kZSB5d
Please notice that we do not tested any kind of code Booking.com Affiliate with our theme.

Thank you!

Post count: 6

If I add java script in theme panel then how can i add that scrip to my posts? How can i add multiple scripts to a single post?

I resolved the issue by using “Embed Code” plugin. Now i have the option to embed multiple java scripts in single post.

Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic.