This file contains hidden or 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
$('a[href*=\\#]:not([href=\\#])').on("click", function(e) { | |
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { | |
var target = $(this.hash); | |
target = target.length ? target : $('[name=' + this.hash.slice(1) +']'); | |
if (target.length) { | |
$('html,body').animate({ | |
scrollTop: target.offset().top | |
}, 1000); | |
return false; | |
} |
This file contains hidden or 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
.visibly-hidden { | |
position: absolute !important; | |
clip: rect(1px 1px 1px 1px); | |
/* IE6, IE7 */ | |
clip: rect(1px, 1px, 1px, 1px); | |
padding: 0 !important; | |
border: 0 !important; | |
height: 1px !important; | |
width: 1px !important; | |
overflow: hidden; |
This file contains hidden or 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 | |
// Create a Facebook application to obtain a ID and Secret | |
$appID = 'APPLICATION ID'; | |
$appSecret = 'APPLICATION SECRET'; | |
// Insert Profile ID below using http://findmyfacebookid.com/ | |
$feed = 11111111111; | |
$maximum = 10; | |
$caching = 60; |
This file contains hidden or 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 src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> |
This file contains hidden or 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
{ | |
"color_scheme": "Packages/Color Scheme - Default/Tomorrow-Night-Eighties.tmTheme", | |
"font_size": 14.0, | |
"ignored_packages": | |
[ | |
"Vintage" | |
], | |
"word_wrap": true | |
} |
This file contains hidden or 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
$('#tabs-nav a').bind('click', function(e){ | |
$('#tabs-nav a.current').removeClass('current'); | |
$('.tab-content:visible').removeClass('active-tab'); | |
$(this.hash).addClass('active-tab'); | |
$(this).addClass('current'); | |
e.preventDefault(); | |
}).filter(':first').click(); |
This file contains hidden or 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 if( get_field('field_name') ): ?> | |
<?php the_field('field_name'); ?> | |
<?php endif; ?> |
This file contains hidden or 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 the_slug($echo=true){ | |
$slug = basename(get_permalink()); | |
do_action('before_slug', $slug); | |
$slug = apply_filters('slug_filter', $slug); | |
if( $echo ) echo $slug; | |
do_action('after_slug', $slug); | |
return $slug; | |
} | |
<?php the_slug();?> |
This file contains hidden or 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
<div class="row"> | |
<?php | |
$query_name = new WP_Query(array( | |
'post_type'=>'page', | |
'posts_per_page'=>'4', | |
'post_parent'=>'184', | |
'orderby' => 'menu_order', | |
'order' => 'ASC' | |
)); | |
while ( $query_name->have_posts() ) : $query_name->the_post(); |
This file contains hidden or 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 if( get_field('radio_field' ) === "yes") { ?> | |
<div> | |
<!-- Stuff --> | |
</div> | |
<?php } ?> |