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 rem($property, $values) { | |
// Create a couple of empty lists as output buffers. | |
$base-font-size: 16px; // should be consistent with your html/body font-size | |
$px-values: (); | |
$rem-values: (); | |
// Loop through the $values list | |
@each $value in $values { | |
// For each property value, if it's in rem or px, derive both rem and | |
// px values for it and add those to the end of the appropriate buffer. |
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 | |
function get_thumbnail_url($post_id = null, $size = 'medium') | |
{ | |
global $post; | |
if (is_string($post_id)) { | |
$size = $post_id; | |
$post_id = $post->ID; | |
} |
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
document.querySelectorAll('[target=_blank]').forEach(function(target) { | |
target.setAttribute("rel", "noopener noreferrer"); | |
}); |
OlderNewer