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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Google Captcha v2</title> | |
<script type="text/javascript" language="JavaScript"> | |
// Callback to get the button working. | |
function enableBtn1(){ | |
document.getElementById("button1").disabled = 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
/* | |
* | |
* Make first word in date underlined | |
* | |
------------------------------------*/ | |
$('.js-first-word').each(function(index, element) { | |
var heading = $(element); | |
var word_array, last_word, first_part; | |
word_array = heading.html().split(/\s+/); // split on spaces |
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() { | |
// store the slider in a local variable | |
var $window = $(window), | |
flexslider = { vars:{} }; | |
// tiny helper function to add breakpoints | |
function getGridSize() { | |
return (window.innerWidth < 600) ? 2 : | |
(window.innerWidth < 900) ? 2 : 3; |
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
$('.flexslider').imagesLoaded( function() { | |
$('.flexslider').flexslider({ | |
animation: "fade", | |
slideshowSpeed: 5000, | |
smoothHeight: true, | |
}); // end register flexslider | |
}); |
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
/*------------------------------------- | |
Move Yoast to the Bottom | |
---------------------------------------*/ | |
function yoasttobottom() { | |
return 'low'; | |
} | |
add_filter( 'wpseo_metabox_prio', 'yoasttobottom'); |
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 | |
// Fill in your custom taxonomy here | |
$yourTaxonomy = 'CUSTOM_TAXONOMY'; | |
// SHOW YOAST PRIMARY CATEGORY, OR FIRST CATEGORY | |
$category = get_the_terms( $postId, $yourTaxonomy ); | |
$useCatLink = true; | |
// If post has a category assigned. | |
if ($category){ | |
$category_display = ''; |
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 | |
/** | |
* Infinite next and previous post looping in WordPress | |
* | |
* This will stay in same Custom Taxonomy Term. Also NEXT and PREVIOUS | |
* are switched to give the impression of "Going Forard and Back" | |
*/ | |
if( get_adjacent_post(true, '', false, 'CUSTOM_TAX') ) { | |
next_post_link( '%link', 'PREVIOUS', TRUE, ' ', 'CUSTOM_TAX' ); |
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 | |
// Get RSS Feed(s) | |
include_once( ABSPATH . WPINC . '/feed.php' ); | |
// Get a SimplePie feed object from the specified feed source. | |
$rss = fetch_feed( 'http://journeysfromayrden.tumblr.com/rss' ); | |
if ( ! is_wp_error( $rss ) ) : // Checks that the object is created correctly |
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 class="js-title">My Cool Title</h1> |
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
.last-word { | |
color: #00f; | |
} |