• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

kavikalyn

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password
  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • April 30, 2015 at 3:06 pm in reply to: Need help with Conditional Tags #149662
    kavikalyn
    Member

    Is anyone else out there able to help?

    I need to know what code for conditional tags to put around my Adsense code so ads will show on every page except the homepage.

    I'm entering this code in genesis_before_loop and genesis_after_loop using the Genesis Simple Hooks plugin.

    Thanks in advance for any help.

    April 29, 2015 at 5:44 pm in reply to: Need help with Conditional Tags #149558
    kavikalyn
    Member

    Home

    I have a coming soon plugin but I disabled it for a bit so you can see the homepage.

    Thanks.

    April 29, 2015 at 5:25 pm in reply to: Need help with Conditional Tags #149556
    kavikalyn
    Member

    Thanks for the help so far.

    I tried adding the following to the function.php file:

    add_action( 'genesis_before_loop', 'adsense' );
    function adsense() {
    if ( !is_home() ) {
    echo'Your Script';
        }
    }

    And it showed the ads in the correct location but still showed them on the homepage.

    I'm not very comfortable with the coding and with creating a widget area so I'd rather just use the simple hooks plugin.

    I tried putting the following in the simple hooks plugin:

    if(! is_home()) { ?>
    ADSENSE CODE
    <?php }

    And that didn't work either.

    April 29, 2015 at 4:23 pm in reply to: Need help with Conditional Tags #149549
    kavikalyn
    Member

    That link was helpful, thanks. So is this right? I want to show the ads on every page except the home page (it's a specific page not my posts page).

    if(is_singular()) { ?>
    ADSENSE CODE
    <?php }

    And in theory that would show on every single page except the home page and I just paste that code into the simple hooks plugin?

    There's no way to do an "is not home page" is there?

    October 6, 2014 at 1:11 pm in reply to: Help Styling Pagination #126936
    kavikalyn
    Member

    Thanks so much for the help! It's almost exactly how I'd like now.

    Is it possible to make the current selected page in a red box exactly like the mouseover link instead of just a plain text number?

    Is it also possible to add in next page and previous page buttons like on the homepage as well?

    I tried reviewing that link but I don't really understand it...

    Thanks again.

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble