This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Register front-page widget areas | |
// Courtesy: Sidhart Katakam | |
for ( $i = 1; $i <= 2; $i++ ) { | |
genesis_register_widget_area( | |
array( | |
'id' => "front-page-{$i}", | |
'name' => __( "Front Page {$i}", 'my-theme-text-domain' ), | |
'description' => __( "This is the front page {$i} section.", 'my-theme-text-domain' ), | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Display front-page widget areas. | |
// Courtesy: Sridhar Katakam | |
for ( $i = 1; $i <= 2; $i++ ) { | |
genesis_widget_area( "front-page-{$i}", array( | |
'before' => '<div class="front-page-' . $i . ' widget-area"><div class="wrap">', | |
'after' => '</div></div>', | |
) ); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Enqueue Ionicons Scripts | |
wp_enqueue_style( 'genesis-ionicons', '//code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css', array(), CHILD_THEME_VERSION ); | |
Note: You need locate "Enqueue Scripts and Styles" in functions.php file and add the above code below the line where Google fonts script is enqued. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//* Setup widget counts | |
function genesis_count_widgets( $id ) { | |
global $sidebars_widgets; | |
if ( isset( $sidebars_widgets[ $id ] ) ) { | |
return count( $sidebars_widgets[ $id ] ); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Display Flexible Widget | |
genesis_widget_area( "front-page-2", array( | |
'before' => '<div class="front-page-2 front-page-section"><div class="solid-section flexible-widgets widget-area' . genesis_widget_area_class( 'front-page-2' ) . '"><div class="wrap">', | |
'after' => '</div></div></div>', | |
) ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Front Page Featured Widget Area Styling */ | |
.front-page-section .widget-title { | |
text-align: center; | |
font-size: 48px; | |
font-size: 4.8rem; | |
margin-bottom: 40px; | |
font-weight: 400; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Top Widget | |
Title: Features | |
Html text: <p class="thirty">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> | |
Widget #1 | |
Html text: <div class="content-box"><i class="icon ion-ios-monitor-outline"></i> | |
<h4>Mobile Responsive</h4> | |
Lorem ipsum dolor sit amet, consectetur adipiscing elit. | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Register widget area for lead capture page | |
genesis_register_sidebar( array( | |
'id' => 'lead-capture', | |
'name' => __( 'Lead Capture', 'genesis' ), | |
'description' => __( 'This is the lead capture section.', 'genesis' ), | |
) ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//* Template Name: Lead Capture | |
//* Add landing page body class to the head | |
add_filter( 'body_class', 'genesis_add_body_class' ); | |
function genesis_add_body_class( $classes ) { | |
$classes[] = 'lead-capture-page'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* LEAD CAPTURE PAGE | |
----------------------------------------- */ | |
/* Headings */ | |
.landing-page .entry-content h4, | |
.lead-capture-page .entry-content h4 { | |
margin-bottom: 40px; | |
margin-top: 60px; | |
text-align: center; | |
} |