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 | |
$ancestors = get_post_ancestors($post); | |
if (count($ancestors) >= 1) { // add your hierarchy here | |
$parent = $ancestors[0]; | |
} | |
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 | |
$seo_title = get_post_meta($post->ID, '_yoast_wpseo_title', true); | |
$seo_title = apply_filters('the_title', $seo_title); | |
if($seo_title == "") $seo_title = get_the_title(); | |
?> | |
<title><?php if (!is_home()) { echo $seo_title; echo " - "; } echo str_replace("%s", "", get_bloginfo('name')); ?><?php # if (!is_home()) | |
echo " "; | |
#get_the_title();#wp_title(); ?></title> |
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
// tooltips | |
$('[data-toggle="tooltip"]').tooltip({'placement': 'top'}); | |
// popovers | |
$('[data-toggle="popover"]').popover({trigger: 'hover','placement': '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
/*------------------------------------*\ | |
PX to EM Converter | |
Syntax: .em(45) => 2,81em | |
\*------------------------------------*/ | |
@browser-default-font-size: 16; //px | |
.em (@value, @context: @browser-default-font-size) { | |
font-size: (@value/@context) + 0em; |
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
defaults write com.apple.screencapture disable-shadow -bool TRUE | |
killall SystemUIServer |