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
javascript: window.location = 'https://webcache.googleusercontent.com/search?q=cache:' + window.location.protocol + '//' + window.location.hostname + window.location.pathname; |
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
.screen-reader-text:not(:focus):not(:active) { | |
position: absolute; | |
overflow: hidden; | |
clip: rect(0 0 0 0); | |
clip-path: inset(50%); | |
width: 1px; | |
height: 1px; | |
white-space:nowrap; | |
} |
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
if ( function_exists( 'add_theme_support' ) ) { | |
add_theme_support( 'post-thumbnails' ); | |
set_post_thumbnail_size( 150, 79, true ); | |
add_image_size( 'single-post-thumbnail', 1200, 630 ); | |
} |
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 remove_yoast_json($data){ | |
$data = array(); | |
return $data; | |
} | |
add_filter('wpseo_json_ld_output', 'remove_yoast_json', 10, 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
<time datetime="<?php the_time('c'); ?>"><?php the_time('m/j/Y'); ?> <?php the_time('g:ia T'); ?></time> |
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
<h1><?php the_title(); ?></h1> | |
<?php echo '<p>' . get_the_excerpt() . '</p>'; ?> |
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
<script type="application/ld+json"> | |
{ | |
"@context": "https://schema.org", | |
"@type": "ProfilePage", | |
"dateCreated": "2019-12-23T12:34:00-05:00", | |
"dateModified": "2019-12-26T14:53:00-05:00", | |
"mainEntity": { | |
"@type": "Person", | |
"@id": "https://www.coywolf.news/jon-henshaw#Person", | |
"name": "Jon Henshaw", |
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
<script> | |
document.querySelectorAll('[rel="sponsored"]').forEach(item => { | |
item.addEventListener('click', event => { | |
let linkUrl = new URL(item.getAttribute('href'), window.location.href); | |
// Using the second argument to handle relative URLs | |
let currentHostname = window.location.hostname; | |
if (linkUrl.hostname !== currentHostname) { | |
// If the link's hostname is different from the current page's hostname | |
let domainParts = linkUrl.hostname.split('.'); | |
let domainName = domainParts.length > 1 ? domainParts[domainParts.length - 2] : domainParts[0]; |
NewerOlder