• 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

Rick Adlam

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 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • September 15, 2013 at 3:03 pm in reply to: Exclude adsense in contact us page etc. #62700
    Rick Adlam
    Member

    Thanks Brad,
    This is the code that worked.

    <?php
    if (!is_page( array ( 33, 51, 61, 75, 77, 78, 80, 81, 84)) ) { ?>
    ADSENSE CODE GOES HERE
    <?php }
    ?>

    I left the footer ads on all pages, but excluded the 'genesis_before_content_sidebar_wrap' Hook "banner ad" and the 'genesis_after_post_title' Hook "banner ad", from only the pages specified.
    Lovely.

    September 14, 2013 at 4:59 pm in reply to: Exclude adsense in contact us page etc. #62582
    Rick Adlam
    Member

    Thanks Brad.
    In each hook, I tried to wrap the adsense code with this array, like this:

    <?php
    if( !is_page( array('Privacy Policy', 'Contact Us', 'About Us', Guest Writers', 'Submit Articles', 'Self Promotion',) ) )
    ; ?>
    I PUT MY ADSENSE CODE HERE

    <?php endif
    ; ?>

    I got this error

    Parse error: syntax error, unexpected T_STRING, expecting ')' in /home/mrmortga/public_html/wordpress/wp-content/plugins/genesis-simple-hooks/plugin.php(123) : eval()'d code on line 1

    September 14, 2013 at 3:04 pm in reply to: Exclude adsense in contact us page etc. #62574
    Rick Adlam
    Member

    I put the Adsense code, and nothing else in Simple hooks.

    September 14, 2013 at 2:10 am in reply to: Big No-No to edit functions.php file? #62463
    Rick Adlam
    Member

    Hi mkatty,
    I'm new to Genesis, but will this help?
    You have simple edits plugin installed.
    Delete the short codes there you don't want, and leave the ones you want to keep, like I did here below.
    In Simple Edits Go to the:
    Footer Credits Text: I left this alone, but you could wipe it

    Footer output: Check box for Modify Entire Footer Text (including markup)? [check this box make your changes in the text area below it]

    This is my practice build site at http://www.mrmortgage.com.au/wordpress/ [So you can check the result]

    This is the mix of short codes I left, and the HTML I added, to get rid of Genesis credits and add my own.

    "<div class="gototop"><p>[footer_backtotop]</p></div><div class="creds"><p>Copyright [footer_copyright] · Mortgage News & Reviews Published By Mr Mortgage · [footer_loginout]</p></div>"

    Hope this is what you are wanting to achieve.

    Rick Adlam

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 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