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
$('a[href*=#]').bind('click', function(e) { | |
//e.preventDefault(); //prevent the "normal" behaviour which would be a "hard" jump | |
var target = $(this).attr("href"); //Get the target | |
// perform animated scrolling by getting top-position of target-element and set it as scroll target | |
$('html, body').stop().animate({ scrollTop: $(target).offset().top }, 600, function() { | |
//location.hash = target; //attach the hash (#jumptarget) to the pageurl | |
}); | |
//return 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
/*Set Equal Column heights unless Width < 800px */ | |
var maxHeight = 0; | |
var eventFired = 0; | |
if (jQuery(window).width() <= 800) { | |
} else { | |
jQuery(".equalize").each(function(){ | |
if (jQuery(this).height() > maxHeight) { maxHeight = jQuery(this).height(); } | |
}); |
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
/*Set Div Same Height As Browser Window*/ | |
$(function(){ | |
$(window).load(function(){ // On load | |
$('#div').css({'height':(($(window).height()))+'px'}); | |
}); | |
$(window).resize(function(){ // On resize | |
$('#div').css({'height':(($(window).height()))+'px'}); | |
}); | |
}); |
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 the_date("Y") ?> |
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 make_clickable( $link ); ?> |
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 rand(1,3); // Random var ?> |
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
//Show Kitchen Sink As Default In TinyMCE | |
function unhide_kitchensink( $args ) { | |
$args['wordpress_adv_hidden'] = false; | |
return $args; | |
} | |
add_filter( 'tiny_mce_before_init', 'unhide_kitchensink' ); |
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
// Custom Excerpt Ellipses | |
function new_excerpt_more($more) { | |
global $post; | |
return '<a href="'. get_permalink($post->ID) . '">' . ' Read More' . '</a>'; | |
} | |
add_filter('excerpt_more', 'new_excerpt_more'); |
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
//Rename Featured Image Box for Post Type | |
add_action('do_meta_boxes', 'projectposttype_image_box'); | |
function projectposttype_image_box() { | |
remove_meta_box( 'postimagediv', 'projects', 'side' ); | |
add_meta_box('postimagediv', __('Featured Image- Min. 310x170px'), 'post_thumbnail_meta_box', 'projects', 'side'); | |
} |
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
//Remove Meta Generator Tag | |
remove_action('wp_head', 'wp_generator'); |