Tobias Hagemeister posted in the comment section:
Hello everybody, I need some further customization work for the Corporate Pro theme. Could someone help me please (paid)? Maybe Aryan Raj ?
Unregister genesis featured are on single blog posts
Add new widget area for horizontal opt-in with a full width background color. (instead of current featured area)
Move blog title into content (already done)
Move featured image into content
Thanks!
Solution:
ADD THE FOLLOWING IN FUNCTIONS.PHP
//move post title add_action('genesis_after_header', 'reposition_post_title', 9); function reposition_post_title() { if (!is_single() ) { return; } //remove_action( 'genesis_entry_header', 'genesis_do_post_title', 2 ); remove_action('corporate_hero_section', 'corporate_page_title', 10); add_action('genesis_entry_header', 'corporate_page_title', 10); } // featured image add_action('genesis_after_header', 'reposition_post_image', 2); function reposition_post_image() { if (!is_single() ) { return; } remove_action( 'genesis_before_content_sidebar_wrap', 'corporate_hero_section', 10 ); add_action('genesis_entry_header', 'corporate_hero_section', 9); } // Step 1. Register Horizontal Opt-in widget area. genesis_register_widget_area( array( 'id' => 'horizontal-opt-in', 'name' => __( 'Horizontal Opt-in', 'text-domain' ), 'description' => __( 'This is the horizontal opt-in section.', 'text-domain' ), ) ); // Step 2. Display Horizontal Opt-in widget area below header add_action( 'genesis_before_content_sidebar_wrap', 'genesiskit_horizontal_optin' ); function genesiskit_horizontal_optin() { if ( !is_single() ) { return; } genesis_widget_area( 'horizontal-opt-in', array( 'before' => '<div class="horizontal-opt-in widget-area"><div class="wrap">', 'after' => '</div></div>', ) ); }
ADD THE FOLLOWING IN STYLES.CSS
/* Horizontal Opt-in -------------------------------------------- */ .horizontal-opt-in { background-color: #f6f8fa; border: 1px solid #eceef14d; border-radius: 3px; color: #fff; padding: 20px; max-width: none; width: 100vw; left: 50%; margin-left: -50vw; position: relative; padding: 15rem 0 10rem; } .horizontal-opt-in .enews-widget input { margin-bottom: 5px; } @media (min-width: 768px) { .horizontal-opt-in .enews { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-box-pack: center; -webkit-justify-content: center; -ms-flex-pack: center; justify-content: center; -webkit-box-align: center; -webkit-align-items: center; -ms-flex-align: center; align-items: center; max-width: 1000px; margin: 0 auto; } .horizontal-opt-in form { background: rgba(255, 255, 255, 0.18); border-radius: 8px; margin-bottom: 10px; padding: 20px 10px 5px; width: 100%; } .horizontal-opt-in .enews-widget input { width: 35%; } .horizontal-opt-in .enews-widget input[type="submit"] { width: 25%; padding: 0; } }