Last active
February 9, 2017 20:02
-
-
Save marisqaporter/bc8c241899b2053e101d8af378604f37 to your computer and use it in GitHub Desktop.
Leland's Header Changes
This file contains 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 to custom.css*/ | |
.title-area { | |
float: left; | |
padding: 16px 0; | |
width: 100%; | |
max-width: 100%; | |
} |
This file contains 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 | |
/*putting a menu in the header */ | |
function register_additional_genesis_menus() { | |
register_nav_menu( 'third-menu' , | |
__( 'Third Navigation Menu' )); | |
} | |
add_action( 'init', 'register_additional_genesis_menus' ); | |
add_action( 'genesis_header_right', 'add_third_nav' ); | |
function add_third_nav() { | |
wp_nav_menu( array( | |
'theme_location' => 'third-menu', | |
'container_class' => 'genesis-nav-menu' ) ); | |
} | |
/*put a static area in after header for the hero image and tagline */ | |
add_action( 'genesis_after_header', 'child_seo_site_description' ); | |
/** | |
* | |
* Replace Site Description | |
* | |
* @author Marisa Porter | |
* @since 1.0.0 | |
*/ | |
function child_seo_site_description() { | |
if ( is_front_page() ) { | |
echo '<div class="site-description-wrap"> | |
<div id="my-site-description"> | |
<h1 class="my-site-description">Come Home</h1> | |
<h2 class="my-site-description">to a Cabin Built by Local Craftsmen</h2> | |
</div> | |
</div> | |
<div class="mobile-site-description-wrap"> | |
<div id="site-description-top"></div> | |
<div id="site-description-middle"> | |
<h1 class="my-site-description">Come Home</h1> | |
<h2 class="my-site-description">to a Cabin Built by Local Craftsmen</h2> | |
</div> | |
<div id="site-description-bottom"></div> | |
</div>'; | |
} | |
elseif ( is_singular() || is_page() || is_single () ) { | |
?><div class="invisible"></div><?php | |
} | |
} | |
?> |
This file contains 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
/*mini product testimonials */ | |
.bg-dark-gray-posts { | |
background-color: #606060; | |
} | |
/*new header and nav for desktop */ | |
.genesis-nav-menu { | |
float: left; | |
position: relative; | |
padding: 0; | |
margin: 0; | |
max-width: 100%; | |
box-sizing: border-box; | |
float: right; | |
} | |
.genesis-nav-menu li { | |
float: right; | |
margin: 0 2px; | |
padding:0; | |
} | |
.genesis-nav-menu a { | |
padding:20px 30px !important; | |
font-family: brandon printed one; | |
margin:0; | |
} | |
.genesis-nav-menu li:first-child a { | |
background-color:#65b1c7; | |
color:#fff; | |
} | |
@media screen and (min-width:1025px) { | |
.jumbo-menu-button { | |
display:none !important; | |
} | |
.genesis-nav-menu { | |
display:block ! important; | |
} | |
} | |
@media screen and (max-width:1024px) { | |
.jumbo-menu-button { | |
display:block !important; | |
} | |
.genesis-nav-menu { | |
display: none !important; | |
} | |
} | |
.widget-area.header-widget-area { | |
display: block; | |
position: relative; | |
float: right; | |
width: 70%; | |
margin-top: 0; | |
padding: 0; | |
} | |
/*block below style.css*/ | |
/*other edits */ | |
/*add to line 1073*/ | |
.site-header { | |
background-color: #fff; | |
max-width:1200px; | |
display:block; | |
margin: 0 auto; | |
} | |
/*line 1069*/ | |
.title-area { | |
float: left; | |
width: 30%; | |
max-width: 30%; | |
margin: 0; | |
} | |
/*somewhere*/ | |
/*line 2229*/ | |
.genesis-nav-menu { | |
float: left; | |
position: relative; | |
padding: 0; | |
margin: 0; | |
max-width: 70%; | |
box-sizing: border-box; | |
float: right; | |
margin-top: -90px; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment