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
// Markup Sample | |
<img src="<?php echo $image[0]; ?>" | |
width="<?php echo $image[1]; ?>" | |
height="<?php echo $image[2]; ?>" | |
alt="<?php echo $image_alt; ?>" /> | |
// Markup Sample (Media Query Sync) | |
<figure> | |
<img class="responsive" | |
src="<?php echo $media_sml[0]; ?>" |
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
<snippet> | |
<content><![CDATA[ | |
rem(${1}); | |
]]></content> | |
<tabTrigger>rm</tabTrigger> | |
</snippet> |
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
<snippet> | |
<content><![CDATA[ | |
em(${1}); | |
]]></content> | |
<tabTrigger>em</tabTrigger> | |
</snippet> |
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
<snippet> | |
<content><![CDATA[ | |
@include rem(${1}, ${2}); | |
]]></content> | |
<tabTrigger>rem</tabTrigger> | |
</snippet> |
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
<snippet> | |
<content><![CDATA[ | |
@include mq(${1}) { | |
${2} | |
} | |
]]></content> | |
<tabTrigger>mq</tabTrigger> | |
</snippet> |
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
// Remove Admin Bar Margin | |
add_action('get_header', 'my_filter_head'); | |
function my_filter_head() { | |
remove_action('wp_head', '_admin_bar_bump_cb'); | |
} |
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
// Allow custom post types in tag search | |
function post_type_tags_fix($request) { | |
if ( isset($request['tag']) && !isset($request['post_type']) ) | |
$request['post_type'] = 'any'; | |
return $request; | |
} | |
add_filter('request', 'post_type_tags_fix'); |
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
// check if it's a blog page | |
function is_blog () { | |
global $post; | |
$posttype = get_post_type($post ); | |
return ( ((is_archive()) || (is_author()) || (is_category()) || (is_home()) || (is_single()) || (is_tag())) && ( $posttype == 'post') ); | |
} |
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
// Remove jump with <-more-> tag | |
function remove_more_jump_link($link) { | |
$offset = strpos($link, '#more-'); | |
if ($offset) { $end = strpos($link, '"',$offset); } | |
if ($end) { $link = substr_replace($link, '', $offset, $end-$offset); } | |
return $link; | |
} | |
add_filter('the_content_more_link', 'remove_more_jump_link'); |