what's the simplest way on WP to add the code so 30% of the time all clicks on the thumbs go to trades. As opposed to doing it for each post.
Here is the blog btw
https://www.sponsorchat.com/photos/
Peace
out going link on WP
Moderator: Rock
-
- Posts: 20
- Joined: Sat Oct 20, 2018 11:51 am
- Contact:
-
- Posts: 20
- Joined: Sat Oct 20, 2018 11:51 am
- Contact:
Re: out going link on WP
okay let's try again, what code and where do you put on a wordpress blog for all links to go say 70% to trade. Expect for the navigation links where you want them not to go to trades.
Cheers
Cheers
-
- Posts: 20
- Joined: Sat Oct 20, 2018 11:51 am
- Contact:
Re: out going link on WP
Here is the issue, testing it on my WP blog
https://www.sponsorchat.com/pics/
In the head I have;
And some navigation links I just do not want the links to trade out, for example
But it does not work, the link works like a trade.
Peace
https://www.sponsorchat.com/pics/
In the head I have;
Code: Select all
<?php
include "/home/nfvltd/public_html/sponsorchat.com/x/in.php";
?>
<script type="text/javascript" src="/js/jquery.js"></script>
<script>
jQuery(document).ready(function(){
jQuery("a").click(function(){
url=jQuery(this).attr('href');
jQuery(this).attr('href','/x/out.php?s=70&link=click&url=' + escape(url));
});
});
</script>
Code: Select all
<a href="/x/out.php?s=100&u=https://www.sponsorchat.com/pics/category/amateur/">Amateur</a>
Peace
-
- Posts: 20
- Joined: Sat Oct 20, 2018 11:51 am
- Contact:
Re: out going link on WP
solved thanks to Alex,