1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Help Me with Ad Code in Wordpress

Discussion in 'Blogging' started by theD2, Oct 13, 2015.

  1. theD2

    theD2 Regular Member

    Joined:
    Oct 26, 2011
    Messages:
    213
    Likes Received:
    31
    Gender:
    Male
    hello , im trying to put exoclick's popunder which will pop up ON CLICK.

    i placed this code in wordpress's header.php <body>
    <script type="text/javascript" src="http://syndication.exoclick.com/splash.php?idzone=***MyId****&type=11"></script>


    but i dont know where to place this code
    target="_blank" onclick="exoMobilePop();"


    ===================
    exo says

    <script type="text/javascript" src="http://syndication.exoclick.com/splash.php?idzone=***MyId****&type=11"></script>
    Place the complete code above into the <body> of your site.

    This script will create a JavaScript function called exoMobilePop() that you can call on all the links of your mobile site.

    Links should be modified adding this :

    target="_blank" onclick="exoMobilePop();"
    Example :

    <a href="http://www.google.com" target="_blank" onclick="exoMobilePop();">My Link</a>

    Note : Our script will trigger only one popunder per user, per 24 hours.
    ===================

    please help :help:
     
  2. mlaurin

    mlaurin Newbie

    Joined:
    Aug 25, 2012
    Messages:
    10
    Likes Received:
    3
    Occupation:
    Web Marketing Analyst
    You place it in an <a> tag like it says at the bottom of your example. You can place an onClick event in a variety of different HTML elements. For example on a button <button onClick="yourfunction"></button> or on a div <div onClick="yourFunction"></div> or on the <a> tag. Find the button or link or whatever that you want the popup to be triggered by. For instance if someone is supposed to click a button on your page, you need to find the code that makes that button and paste your onClick event there. The syntax you have in your example is for a link though (the target="_blank" will make the page open in a new window.

    Hope that helps
     
  3. mlaurin

    mlaurin Newbie

    Joined:
    Aug 25, 2012
    Messages:
    10
    Likes Received:
    3
    Occupation:
    Web Marketing Analyst
    One more thing. If you paste your code on an <a> tag, it should look like this <a href="/destination/url" target="_blank" onClick="exoMobilePop();">Your Link Text</a>
     
  4. littleseizure

    littleseizure Newbie

    Joined:
    Sep 7, 2015
    Messages:
    16
    Likes Received:
    1
    Sounds like mlaurin is correct. Say a prayer, stand on one foot, and make sure you're holding your mouth right as well. Getting ad codes to work in WP can be a sure way to the cardiac care unit, LOL.