WordPress.org

Forums

how to show ads on homepage only in widgets (4 posts)

  1. wilosani
    Member
    Posted 11 months ago #

    hello all i am trying to show ads on homepage only . i am inserting it on widget and theme setting (which allows to add ads from setting) i am using gameleon theme
    i was tryed this code
    <?php if (is_home()) {

    } ?>

    but it dont working :(
    <?php if(is_home() && !is_paged()):?>write text here<?php endif;?>
    this code dont working too :(
    i also tryed wordpress plugin widget logic but when i put ads on it. it sayes 404 error..
    can you help me and give me right code???
    website:
    http://return-man-3.com/

  2. Rajan V
    Member
    Posted 11 months ago #

    I can't find your problem. Can you give me any screenshots

  3. wilosani
    Member
    Posted 11 months ago #

    i want to show advertisment on only homepage but it shows on all pages !

  4. Rajan V
    Member
    Posted 11 months ago #

    Can you please send me your full page code where you put that ads code.

Reply

You must log in to post.

About this Topic

Tags