• 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

devinday

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
  • February 8, 2013 at 3:47 pm in reply to: Move function from home.php to functions.php #19082
    devinday
    Member

    Sorry the post was messed up. How did you properly add the code in your post? I put the code brackets around my, but the formatting went to crap.

    February 8, 2013 at 3:45 pm in reply to: Move function from home.php to functions.php #19079
    devinday
    Member

    Hi Brad, Thank you for your reply! OK, I have read your post and also reviewed brian's post. Here is what I came up with.

    1. Registered New CTA widget area

    genesis_register_sidebar( array( 'id' => 'welcome-cta', 'name' => __( 'Welcome CTA', 'executive' ), 'description' => __( 'This is the welcome cta widget.', 'executive' ), ) );

    2. Added the following function to functions.php

    /** Add the welcome CTA section */ add_action( 'genesis_before_footer', 'custom_welcome_cta' ); function custom_welcome_cta() { if (is_home() ) { genesis_widget_area( 'welcome-cta', array( 'before' => '
    ', ) ); } }

    3. I referenced the div class in the above function to call the same CSS from the original theme call to action widget CSS This code is live now on the site, but my CTA widget is showing up on the home before the footer.

    Thoughts?

    February 8, 2013 at 3:43 pm in reply to: Move function from home.php to functions.php #19078
    devinday
    Member

    Hi Brad,

    Thank you for your reply! OK, I have read your post and also reviewed brian's post. Here is what I came up with.

    1. Registered New CTA widget area

    genesis_register_sidebar( array(
    'id' => 'welcome-cta',
    'name' => __( 'Welcome CTA', 'executive' ),
    'description' => __( 'This is the welcome cta widget.', 'executive' ),
    ) );

    2. Added the following function to functions.php


    /** Add the welcome CTA section */
    add_action( 'genesis_before_footer', 'custom_welcome_cta' );

    function custom_welcome_cta() {
    if (is_home() ) {
    genesis_widget_area( 'welcome-cta', array(
    'before' => '',
    ) );
    }
    }

    3. I referenced the div class in the above function to call the same CSS from the original theme call to action widget CSS

    This code is live now on the site, but my CTA widget is showing up on the home before the footer.

    Thoughts?

    January 28, 2013 at 12:24 am in reply to: Linkable header image and responsive slider #15527
    devinday
    Member

    SoZo, thanks!

    Worked like a charm. As always, much appreciated.

    -Devin

  • 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