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 | |
add_action( 'wp_head', 'custom_genesis_page_builder_styles' ); | |
/** | |
* Echo the necessary "Full Page Width" styles into the head of the page. | |
* Credit for the following CSS goes to the developer of the "Genesis Dambuster" | |
* Plugin as this CSS is an edited version of that Plugin's full-width.css file. | |
*/ | |
function custom_genesis_page_builder_styles() { | |
echo ' | |
<style type="text/css"> |
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
/* Column Classes | |
--------------------------------------------- */ | |
.five-sixths, | |
.four-sixths, | |
.four-fifths, | |
.one-fifth, | |
.one-fourth, | |
.one-half, | |
.one-sixth, |
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
#wrap => .site-container | |
#header => .site-header | |
#title-area => .title-area | |
#title => .site-title | |
#description => .site-description | |
#nav => .nav-primary | |
#subnav => .nav-secondary | |
#inner => .site-inner | |
#content-sidebar-wrap => .content-sidebar-wrap | |
#content => .content |
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
/* 5th @media query trigger point */ | |
.site-header { | |
min-height: 80px; | |
} | |
.header-image .site-header .wrap .title-area { | |
width: 320px; | |
height: 80px; | |
background-size: 320px 80px; | |
} |
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
<style> | |
@font-face { | |
font-family: 'Rubik-Regular'; | |
src: url('<?php echo get_stylesheet_directory_uri(); ?>/fonts/Rubik-Regular.eot?#iefix') format('embedded-opentype'), url('<?php echo get_stylesheet_directory_uri(); ?>/fonts/Rubik-Regular.woff') format('woff'), url('<?php echo get_stylesheet_directory_uri(); ?>/fonts/Rubik-Regular.ttf') format('truetype'), url('<?php echo get_stylesheet_directory_uri(); ?>/fonts/Rubik-Regular.svg#Rubik-Regular') format('svg'); | |
font-weight: normal; | |
font-style: normal; | |
} | |
</style> |
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_action( 'get_header', 'custom_child_full_width_singular_layout'); | |
// Force full-width-content layout on single pages and posts, but not "blog" page. | |
function custom_child_full_width_singular_layout() { | |
if ( ( is_page() || is_single() ) && ! is_page( 'blog' ) ) | |
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' ); | |
} |
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
/* | |
* Sets a custom minimum width for the fixed header functionality to remain in effect. | |
* Paste this into your Custom Functions and then adjust the '920' value to your specific needs. | |
*/ | |
add_filter( 'dynamik_fixed_header_min_width', 'custom_fixed_header_min_width' ); | |
function custom_fixed_header_min_width() { | |
return '920'; | |
} |
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
// Disable the Freelancer custom icon set styles. | |
define( 'FREELANCER_ICONS_DISABLE', true ); |
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
#!/bin/sh | |
## Once the "gulp-first-time-setup" script has been run (see gulp-readme.md) you should run THIS version from that point on | |
## Copy/paste this line into the Console to make this script executable: chmod +x gulp-setup.sh | |
## Copy/paste this line into the Console to execute this script: ./gulp-setup.sh | |
## Initialize NPM | |
npm init --yes |