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
| <div class="one-half first"> | |
| <h1>Contact Page</h1> | |
| * This contact form was developed with a third party plugin called <a href="http://www.studiopress.com/go/gravity">Gravity Forms</a> and is not included in the Genesis Framework. It is for display on this demo site - though we highly recommend using it. | |
| </div> | |
| <div class="one-half">[gravityform id=1 name=ContactForm title=false description=false]</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
| /* Gravity Forms | |
| --------------------------------------------- */ | |
| div.gform_wrapper input[type="email"], | |
| div.gform_wrapper input[type="tel"], | |
| div.gform_wrapper input[type="text"], | |
| div.gform_wrapper input:not([type=radio]):not([type=checkbox]):not([type=submit]):not([type=button]):not([type=image]):not([type=file]), | |
| div.gform_wrapper textarea, | |
| div.gform_wrapper .ginput_complex label { | |
| font-size: 16px; |
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
| /* Logo, hide text */ | |
| .header-image .site-header .wrap { | |
| background: url(http://yourwebsite.com/wp-content/uploads/2016/07/logo-1.png) no-repeat left center; | |
| padding: 0; | |
| } | |
| @media only screen and (max-width: 900px) { | |
| .header-image .site-header .wrap { |
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
| @media only screen and (max-width: 480px) { | |
| /* Hide the regular background image */ | |
| .home .before-content .backstretch { | |
| display: none !important; | |
| } | |
| /* Set a colour so we don't end up with white on white text */ | |
| .home .before-content { | |
| background-color: #8dc1d9; |
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
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
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 | |
| function nd_featured_image_size_sniff() { | |
| if ( ! has_post_thumbnail() ) { | |
| return; | |
| } | |
| $featured_image_id = get_post_thumbnail_id( get_the_ID() ); | |
| $featured_image_metadata = wp_get_attachment_metadata( $featured_image_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
| <?php | |
| add_theme_support( 'genesis-footer-widgets', 3 ); |
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 | |
| add_action( 'wp_enqueue_scripts', 'kickstart_enqueue_backstretch_scripts' ); | |
| // Enqueue Backstretch script and prepare images for loading | |
| function kickstart_enqueue_backstretch_scripts() { | |
| // Don't do any backstretching on the homepage (CUSTOM) | |
| if ( is_front_page() ) { | |
| return; | |
| } |
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
| @media only screen and (max-width: 900px) { | |
| .header-image .site-title a { | |
| min-height: 95px; /* You need to allow more space for the logo if you're doing this so increase the min-height to suit */ | |
| } | |
| .header-image .site-header .wrap { | |
| /* background-size: 93px 48px;*/ /* Removes image resizing completely, otherwise you can uncomment it and adjust the size manually by changing the values (making sure to keep it in proportion to the original image */ | |
| } | |
| } |
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
| .before-content { | |
| height: auto; | |
| margin-bottom: -124px; | |
| margin-top: 0; | |
| top: -124px; | |
| } | |
| .backstretch, | |
| .backstretch img { | |
| height: auto !important; |