Last active
December 16, 2015 09:28
-
-
Save zachbrowne/5412890 to your computer and use it in GitHub Desktop.
Custom CSS for PE
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
/* Home Contact | |
------------------------------------------------------------ */ | |
#home-contact { | |
width: 100%; | |
background-color: #f1f1f1; | |
border-bottom: 1px solid #bbb; | |
clear: both; | |
margin: 0 auto; | |
overflow: hidden; | |
padding: 10px 0; | |
height: 35px; | |
} | |
#home-contact .home-contact-1 { | |
float: left; | |
width: 50%; | |
overflow: hidden; | |
} | |
#home-contact .home-contact-2 p { | |
text-align:right; | |
} | |
#home-contact .home-contact-2 img { | |
padding: 0 5px 0 5px; | |
} | |
/* Home Entry | |
------------------------------------------------------------ */ | |
#home-entry { | |
width: 1140px; | |
background-color: #f5f5f5; | |
clear: both; | |
margin: 0 auto; | |
overflow: hidden; | |
padding: 20px 0; | |
height: 125px; | |
background: url(images/small-vertical-divider.png) no-repeat center center; | |
border: 0 1px 0 1px solid #f1f1f1; | |
} | |
#home-entry .home-entry-1 { | |
width: 50%; | |
float: left; | |
overflow: hidden; | |
display: block; | |
margin: 0 0 0 30px; | |
height: 200px; | |
} | |
#home-entry .home-entry-1 h1 {} | |
#home-entry .home-entry-1 h2 {} | |
#home-entry .home-entry-1 h3 {} | |
#home-entry .home-entry-1 p {} | |
#home-entry .home-entry-2 { | |
overflow: hidden; | |
display: block; | |
margin: 0 30px 0 0; | |
} | |
#home-entry .home-entry-2 p {} | |
/* Home Slider | |
------------------------------------------------------------ */ | |
#home-slider { | |
width: 1140px; | |
clear: both; | |
margin: 0 auto; | |
overflow: hidden; | |
padding: 0 0 30px 0; | |
} | |
/* Home Featured | |
------------------------------------------------------------ */ | |
#home-featured { | |
overflow: hidden; | |
padding: 10px 0 0 0; | |
width: 100%; | |
} | |
#home-featured a.icon-facebook, | |
#home-featured a.icon-facebook:hover, | |
#home-featured a.icon-google, | |
#home-featured a.icon-google:hover, | |
#home-featured a.icon-pinterest, | |
#home-featured a.icon-pinterest:hover, | |
#home-featured a.icon-twitter, | |
#home-featured a.icon-twitter:hover { | |
-moz-border-radius: 50%; | |
-webkit-border-radius: 50px; | |
background: #ddd url(images/icons.png); | |
border-radius: 50%; | |
display: block; | |
height: 140px; | |
margin: 0 auto 30px; | |
padding: 0; | |
text-indent: -9999px; | |
width: 140px; | |
} | |
#home-featured a.icon-facebook:hover, | |
#home-featured a.icon-google:hover, | |
#home-featured a.icon-pinterest:hover, | |
#home-featured a.icon-twitter:hover { | |
background: #028ef0 url(images/icons.png); | |
} | |
#home-featured a.icon-facebook, | |
#home-featured a.icon-facebook:hover { | |
background-position: 0 0; | |
} | |
#home-featured a.icon-google, | |
#home-featured a.icon-google:hover { | |
background-position: -138px 0; | |
} | |
#home-featured a.icon-pinterest, | |
#home-featured a.icon-pinterest:hover { | |
background-position: 0 -138px; | |
} | |
#home-featured a.icon-twitter, | |
#home-featured a.icon-twitter:hover { | |
background-position: -138px -138px; | |
} | |
.home-featured-1, | |
.home-featured-2, | |
.home-featured-3, | |
.home-featured-4 { | |
float: left; | |
margin: 0; | |
overflow: hidden; | |
text-align: center; | |
width: 25%; | |
} |
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
/** Add the home contact section */ | |
add_action('genesis_after_header', 'minimum_home_contact' ); | |
function minimum_home_contact() { | |
if ( is_home() ) { | |
echo '<div id="home-contact"><div class="wrap">'; | |
genesis_widget_area( 'home-contact-1', array( | |
'before' => '<div class="home-contact-1 widget-area">', | |
) ); | |
genesis_widget_area( 'home-contact-2', array( | |
'before' => '<div class="home-contact-2 widget-area">', | |
) ); | |
echo '</div></div>'; | |
} | |
} | |
/** Add the home entry section */ | |
add_action('genesis_after_header', 'minimum_home_entry' ); | |
function minimum_home_entry() { | |
if ( is_home() ) { | |
echo '<div id="home-entry"><div class="wrap">'; | |
genesis_widget_area( 'home-entry-1', array( | |
'before' => '<div class="home-entry-1 widget-area">', | |
) ); | |
genesis_widget_area( 'home-entry-2', array( | |
'before' => '<div class="home-entry-2 widget-area">', | |
) ); | |
echo '</div></div>'; | |
} | |
} | |
/** Add the featured image section */ | |
add_action( 'genesis_after_header', 'minimum_home_slider' ); | |
function minimum_home_slider() { | |
if ( is_home() ) { | |
/*echo '<div id="featured-image"><img src="'. get_stylesheet_directory_uri() . '/images/sample.jpg" /></div>';*/ | |
echo '<div id="home-slider"><div class="wrap">'; | |
genesis_widget_area( 'home-slider', array( 'before' => '<div class="home-slider widget-area">', ) ); | |
echo do_shortcode("[metaslider id=6502]"); | |
echo '</div></div>'; | |
} | |
elseif ( is_singular( array( 'post', 'page' ) ) && has_post_thumbnail() ){ | |
echo '<div id="featured-image">'; | |
echo get_the_post_thumbnail($thumbnail->ID, 'header'); | |
echo '</div>'; | |
} | |
} | |
/** Register widget areas */ | |
genesis_register_sidebar( array( | |
'id' => 'home-contact-1', | |
'name' => __( 'Home Contact 1', 'minimum' ), | |
'description' => __( 'This is the home contact', 'minimum' ), | |
) ); | |
genesis_register_sidebar( array( | |
'id' => 'home-contact-2', | |
'name' => __( 'Home Contact 2', 'minimum' ), | |
'description' => __( 'This is the home contact', 'minimum' ), | |
) ); | |
genesis_register_sidebar( array( | |
'id' => 'home-entry-1', | |
'name' => __( 'Home Entry 1', 'minimum' ), | |
'description' => __( 'This is the home entry', 'minimum' ), | |
) ); | |
genesis_register_sidebar( array( | |
'id' => 'home-entry-2', | |
'name' => __( 'Home Entry 2', 'minimum' ), | |
'description' => __( 'This is the home entry', 'minimum' ), | |
) ); | |
genesis_register_sidebar( array( | |
'id' => 'home-slider', | |
'name' => __( 'Home Slider', 'minimum' ), | |
'description' => __( 'This is the home slider', 'minimum' ), | |
) ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment