• AWeber said that I can add a popup snippet to my home page file but which php file is that? Using TwentyEleven with NomNom theme.

    I only want the popup to happen on my home/front page and I am using frontpage as posts.

    Thanks, Joe

Viewing 6 replies - 1 through 6 (of 6 total)
  • I would just put a condition statement then your code.

    If your site is set to show a page on the homepage then use.

    <?php if(is_front_page() ) { ?>
    
    //AWEBER CODE
    
    <?php } ?>

    If your site is set to show latest blog post on homepage then use.

    <?php if(is_home() ) { ?>
    
    //AWEBER CODE
    
    <?php } ?>
    Thread Starter zep101

    (@zep101)

    Thanks for the quick response but can you tell my where the code should be placed? (Which php file)

    Thanks

    What code are you putting in? Is it the form to collect emails?

    Your theme looks like a paid/preminum theme so I can’t say for sure where it would go since I don’t have access to the files.

    But if you can link to your site and tell me where I might be able to guess.

    Thread Starter zep101

    (@zep101)

    https://topexerciseworkouts.com

    It is a snippet for an exit popup

    Just add that in header.php somewhere after <body>

    Thread Starter zep101

    (@zep101)

    Hey Aaron, I did it and it’s working like a champ! Thanks for your help.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Add AWeber snippet to home page only’ is closed to new replies.