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).ready(function() { | |
whiteRabbit(); | |
madHatter(); | |
marchHare(); | |
function whiteRabbit() { | |
var stopwatch; | |
drinkMe(); | |
} |
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
/* | |
* Styles for Custom Login page | |
*/ | |
body.login { | |
background-image: url('background.jpg'); | |
background-repeat: no-repeat; | |
background-attachment: fixed; | |
background-position: center; | |
} |
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
$('#first').animate({ | |
height: $('#first').get(0).scrollHeight | |
}, 1000, function(){ | |
$(this).height('auto'); | |
}); |
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
{% ifequal page.custom_fields.signup_background_image 'bg.jpg' %} | |
{% else %} | |
{% endifequal %} |
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 pinElement() { | |
var trigger = $('.trigger').offset().top; | |
$(window).scroll(function(){ | |
if($(window).scrollTop() > (trigger)){ | |
// function after trigger | |
} else { | |
// function before trigger | |
} | |
}); | |
} |
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 date meta as string | |
$meta_date = get_post_meta( $post->ID, '_meta_date', true ); | |
// store date meta as date data type | |
$meta_datetime = strtotime( $meta_date ); | |
// store date meta as "Month day, year" | |
$meta_datetext = date( 'F j, Y', $meta_datetime ); |
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 | |
$meta_value = esc_html( get_the_title() ); // set $meta_value to query for | |
$args = array( | |
'meta_query' => array( | |
'relation' => 'OR', // retrieve post if either query is true | |
'meta_subquery1' => array( | |
'key' => 'meta_key1', | |
'value' => $meta_value, | |
'compare' => '=' | |
), |
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 | |
// Move Yoast SEO to the bottom of the page editor | |
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 | |
echo post_type_archive_title( '', false ); |