This topic has 8 replies, 2 voices, and was last updated 10 years by Radu.

  • Author
  • #74237
     jonbrowne
    Participant

    How can I add an ad unit to the archives?

    #74354
     Radu
    Moderator

    Hi,

    I’ve searched on google for some plugins that let you to do that.

    1. https://wordpress.org/plugins/google-publisher/
    2. https://wordpress.org/plugins/advanced-ads/
    3. https://wordpress.org/plugins/adplugg/
    4. https://wordpress.org/plugins/ad-injection/

    NOTE : I’ve not tested compatibility of this plugin with kleo, you should need to test the plugins.

    Regards

    Radu

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #74656
     jonbrowne
    Participant

    I would like for you to know that none of those plugins work with a Cache plugin.

    I was able to do this without the plugin.

    #74704
     Radu
    Moderator

    Ok,

    I’m glad you are solved the issue.

    Can i close the topic ?

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #75008
     jonbrowne
    Participant

    How do I add an ad unit in between posts in the archives. For example,

    Article 1

    Article 2

    Ad Unit

    Article 3

    Article 4

    #76627
     Radu
    Moderator

    Hi,

    Download the attachment, unzip the file, upload this file ( archive.php ) to kleo child root directory.

    Then open the archive.php at line 59 at variable

    COPY CODE
    
    $adcode = '<div style="width:728px; height:90px; background-color:red; position: relative;"> <img src="http://northdelawhere.happeningmag.com/wp-content/uploads/728x90-example-banner.jpg"></div>';
    

    replace the code with your ad code, you need to place ad code inside ”.

    $adcode = ‘PASTE HERE CODE’;

    That’s all.

    The code add after each two posts the ad

    Regards

    RAdu

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #76849
     jonbrowne
    Participant

    I will give this a try and keep you updated.

    #76850
     jonbrowne
    Participant

    Radu you are so awesome!

    #77052
     Radu
    Moderator

    You’re welcome,

    Also don’t forget to rate our theme on Themeforest and give it 5 stars 🙂

    http://themeforest.net/downloads/

    Best regards

    Radu

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 9 posts - 1 through 9 (of 9 total)

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?