Forum Replies Created
-
AuthorPosts
-
devindayMember
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.
devindayMemberHi 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?
devindayMemberHi 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?
devindayMemberSoZo, thanks!
Worked like a charm. As always, much appreciated.
-Devin
-
AuthorPosts