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
Show hidden characters
{ | |
"theme": "Soda Dark.sublime-theme", | |
"font_size": 14.0, | |
"tab_size": 2, | |
"translate_tabs_to_spaces": true, | |
"word_wrap": true, | |
"caret_style": "phase", | |
"highlight_line": true, | |
"line_padding_bottom": 1, | |
"line_padding_top": 1, |
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
function ows_excerpt($num) { | |
$cont = get_the_content(); | |
$more = '… <a href="' . get_permalink() . '">Read More</a>'; | |
$excerpt = wp_trim_words( $cont, $num, $more ); | |
return $excerpt; | |
} |
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
@mixin fontsize($size: 16, $base: 16) { | |
font-size: $size + px; | |
font-size: ($size / $base) * 1rem; | |
} |
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
// COLOR WHEEL | |
@mixin colorwheel($color: $colorBrand,$colors: 6,$spectrum: 180deg,$offset: 30deg) { | |
@for $i from 0 to $colors { | |
&:nth-child(#{$i}) { | |
background: adjust-hue($color, $offset + $spectrum / $colors * $i); | |
} | |
} | |
} |
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
<section id="intro"> | |
<p class="intro">This is the style guide for your website. This document sets the styles and standards to be used when updating or contributing to your site. In this guide you will find examples of what your site is supposed to look like and the many HTML elements that you can use in your posts and pages.</p> | |
<p class="intro">Not only can you view how the elements will appear on your site, but you can also see how these elements are implemented by viewing the <q>Your Website Style Guide</q> post within the WordPress post editor.</p> | |
</section><!-- END #intro --> | |
<section id="branding"> | |
<h2 class="font-script callout">Branding</h2> | |
<h3>Colors & Textures</h3> | |
<ul class="colors"> | |
<li class="color-light"><var>#F5F5F5</var></li> |
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
/** | |
* Color Scheme | |
* Add color theme class to <body> | |
* Requires custom field 'color_scheme' | |
*/ | |
// add_filter('body_class', 'genesass_color_scheme'); | |
function genesass_color_scheme($classes) { | |
$color_scheme = get_field('color_scheme'); |
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
UPDATE wp_posts SET ping_status="closed"; |
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
// Show ACF menu for user_ID 1 only | |
function remove_acf_menu() { | |
$current_user = wp_get_current_user(); | |
if ( $current_user->ID != 1 ) { | |
remove_menu_page( 'edit.php?post_type=acf' ); | |
} | |
} | |
add_action( 'admin_menu', 'remove_acf_menu', 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
// Body Classes | |
// ---------------------------------------- | |
.home {} // if it's the homepage | |
.page {} // if it's any page | |
.postid-XX {} // if it's a post - XX is the post's ID | |
.rtl {} // when dealing with right-to-left content | |
.blog {} // if it's the custom blog listing | |
.archive {} // if it's any sort of archive page | |
.category {} // if it's a categories listing page | |
.tag {} // if it's a tags listing page |
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
// Just Another Sassy Grid | |
// --------------------------------------------- | |
$pad: 2rem; | |
$base-container-width: 100rem; | |
$gridpad: ( $pad / $base-container-width ) * 100%; | |
.row { | |
// margin-bottom: $gridpad; // Optional row padding |
OlderNewer