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
/* | |
This .scss loop will create "margin helpers" and "padding helpers" for use in your web projects. | |
It will generate several classes such as: | |
.m-r-10 which gives margin-right 10 pixels. | |
.m-r-15 gives MARGIN to the RIGHT 15 pixels. | |
.m-t-15 gives MARGIN to the TOP 15 pixels and so on. | |
.p-b-5 gives PADDING to the BOTTOM of 5 pixels | |
.p-l-40 gives PADDING to the LEFT of 40 pixels |
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 | |
// Register Custom Post Type | |
function quote() { | |
$labels = array( | |
'name' => _x( 'quote', 'Post Type General Name', 'quote' ), | |
'singular_name' => _x( 'quote', 'Post Type Singular Name', 'quote' ), | |
'menu_name' => __( 'Quote', 'quote' ), | |
'name_admin_bar' => __( 'Quote', 'quote' ), | |
'archives' => __( 'Item Archives', 'quote' ), |
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
// Register Custom Post Type | |
function partner() { | |
$labels = array( | |
'name' => _x( 'partner', 'Post Type General Name', 'partner' ), | |
'singular_name' => _x( 'partner', 'Post Type Singular Name', 'partner' ), | |
'menu_name' => __( 'Partner', 'partner' ), | |
'name_admin_bar' => __( 'Partners', 'partner' ), | |
'archives' => __( 'Item Archives', 'partner' ), | |
'attributes' => __( 'Item Attributes', 'partner' ), |
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( 'after_setup_theme', 'setup' ); | |
function setup() { | |
add_theme_support( 'post-thumbnails' ); // This feature enables post-thumbnail support for a theme | |
add_image_size( 'single-workspace', 9999, 840, false ); | |
} |
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
//Padding mixin | |
@mixin padding($top, $right, $bottom, $left) { | |
padding-top: $top; | |
padding-right: $right; | |
padding-bottom: $bottom; | |
padding-left: $left; | |
} | |
//Margin mixin | |
@mixin margin($top, $right, $bottom, $left) { | |
margin-top: $top; |
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 box-shadow($top, $left, $blur, $color, $inset: false) { | |
@if $inset { | |
-webkit-box-shadow:inset $top $left $blur $color; | |
-moz-box-shadow:inset $top $left $blur $color; | |
box-shadow:inset $top $left $blur $color; | |
} @else { | |
-webkit-box-shadow: $top $left $blur $color; | |
-moz-box-shadow: $top $left $blur $color; | |
box-shadow: $top $left $blur $color; | |
} |
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
/*/ | |
/* Change Search Button Text | |
/*/ | |
add_filter('get_search_form', 'my_search_form'); | |
function my_search_form($text) { | |
$text = str_replace('value="Search"', 'value="ok"', $text); //set as value the text you want | |
return $text; | |
} |
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
<a href="<?php echo get_permalink( get_page_by_path( 'About' ) ) ?>">About Me</a> |
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
<a href="<?php echo get_permalink( get_page_by_title( 'about' ) ); ?>">About Me</a> |
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
<a href="<?php echo get_permalink( get_page_by_path( 'about' ) ); ?>">About Me</a> |
OlderNewer