1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Buying Wordpress site requires a widget on all pages except hompage

Discussion in 'Programming' started by inet, Nov 26, 2013.

  1. #1
    <div id="voucher" class="coupon">
    <div id="discount">5% OFF ALL TYRES</div>
    <div id="code">DC5ALL</div>
    <div id="findButton">
    <a href="xxxxxxxxxx">
    <img width="150" border="0" height="30" alt="Find my tyres" src="<?php bloginfo('stylesheet_directory');?>/images/find.png">
    </a>
    </div>
    </div>          
    Code (markup):
    I require the above code to be modified to fit inside of a widget and displayed on all pages except the homepage.

    The width is too big so some thinking of how and what can be displayed needs to be considered.

    The payout is via paypal and a max pay out of $5
     
    inet, Nov 26, 2013 IP
  2. .3rok3n

    .3rok3n Well-Known Member

    Messages:
    383
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    135
    Digital Goods:
    1
    As Seller:
    100% - 1
    As Buyer:
    50.0% - 1
    #2
    hello,
    Try using widget logic plugin for wordpress.
    if you do not want to use plugin.
    then use conditional tags
    <?php if (!is_home()) { ?>
    <div id="voucher" class="coupon">
    <div id="discount">5% OFF ALL TYRES</div>
    <div id="code">DC5ALL</div>
    <div id="findButton">
    <a href="xxxxxxxxxx">
    <img width="150" border="0" height="30" alt="Find my tyres" src="<?php bloginfo('stylesheet_directory');?>/images/find.png">
    </a>
    </div>
    </div>
    <?php } ?>
    PHP:
    Thanks
     
    .3rok3n, Nov 26, 2013 IP
    SentoWeb and competent123 like this.
  3. inet

    inet Well-Known Member

    Messages:
    706
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    163
    As Seller:
    100% - 0
    As Buyer:
    100% - 14
    #3
    this job is complete. please close the task
     
    inet, Nov 26, 2013 IP