• 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

Monochrome Pro and removing Before Footer CTA section on 'Contact' page

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

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Monochrome Pro and removing Before Footer CTA section on 'Contact' page

This topic is: resolved

Tagged: genesis_before_footer, monochrome pro

  • This topic has 2 replies, 2 voices, and was last updated 7 years, 10 months ago by ahoy.hoy.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • May 27, 2018 at 11:50 am #220268
    ahoy.hoy
    Participant

    Regards Monochrome Pro I wish to remove the Before Footer CTA section on the 'Contact' Page. The following code:

    add_action( 'genesis_after_content_sidebar_wrap', 'footer_widget_areas' );
    function footer_widget_areas() {

    if ( is_page( array( 'about', 'contact' ) ) ) {
    remove_action( 'genesis_before_footer_cta', 'genesis_footer_widget_areas' );
    }

    }

    when added to child theme’s functions.php, sadly fails to do so.

    Any ideas on how to do so would be most gratefully received.

    Thank you all in advance for your time and trouble.

    Kind regards
    Jason

    http://localhost
    May 27, 2018 at 2:08 pm #220272
    Brad Dalton
    Participant

    Try this code

    Good to see you have a go at it but the reason your code doesn't work is :

    genesis_before_footer_cta is not a action hook

    and

    genesis_footer_widget_areas is not a custom function added in the Monochrome Pro child theme.

    Reference https://codex.wordpress.org/Function_Reference/remove_action#Parameters


    Tutorials for StudioPress Themes.

    May 28, 2018 at 2:10 am #220289
    ahoy.hoy
    Participant

    Wow! That's more than I could have hoped for. Cheers Brad.

    The code worked like a charm and the reasoning now makes sense. And thanks also for the references.

    Have a beautiful day.

    Kind regards
    Jason

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Monochrome Pro and removing Before Footer CTA section on 'Contact' page’ is closed to new replies.

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