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
jQuery(document).ready(function ($) { | |
$('a' ).each(function() { | |
var col = Array("#68be61","#ee3658","#ef4136","#f7931e","#2eabe2","#5a5faa"), pkr; | |
pkr = Math.floor(Math.random() * col.length); | |
$(this).css('color', col[pkr]); | |
}); | |
}); |
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
.rotated-div { | |
/* FF Chrome Opera etc */ | |
-webkit-transform: rotate(90deg); | |
-moz-transform: rotate(90deg); | |
-o-transform: rotate(90deg); | |
/* IE */ | |
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=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
// Remove site footer. | |
remove_action( 'genesis_footer', 'genesis_footer_markup_open', 5 ); | |
remove_action( 'genesis_footer', 'genesis_do_footer' ); | |
remove_action( 'genesis_footer', 'genesis_footer_markup_close', 15 ); | |
// Customize site footer | |
add_action( 'genesis_footer', 'sp_custom_footer' ); | |
function sp_custom_footer() { | |
$creds_text_start = 'Copyright '. do_shortcode( "[footer_copyright]" ).' '; | |
$bloginfo = get_bloginfo( $show ); | |
$creds_text_end = 'Site Design by <a href="http://3200creative.com" title="Site Design by 3200 Creative - 3200creative.com" target="_blank">3200 Creative</a>'; |
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
//* Hide Category from Home Archive | |
add_action( 'pre_get_posts', 'be_exclude_category_from_blog' ); | |
function be_exclude_category_from_blog( $query ) { | |
if( $query->is_main_query() && $query->is_home() ) { | |
$query->set( 'cat', '-4' ); | |
} | |
} |
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_filter('the_excerpt', 'wpautop'); | |
remove_filter('the_content', 'wpautop'); |
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
UPDATE wp_comments SET comment_approved = '0'; | |
DELETE from wp_comments WHERE comment_approved = '0'; | |
DELETE FROM wp_comments WHERE comment_approved = 'spam'; |
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
//* Customize the post meta function | |
add_filter( 'genesis_post_meta', 'sp_post_meta_filter' ); | |
function sp_post_meta_filter($post_meta) { | |
if ( !is_page() ) { | |
$post_meta = '[post_categories before="Filed Under: "] [post_tags before="Tagged: "]'; | |
return $post_meta; | |
}} | |
//* Customize the post info function | |
add_filter( 'genesis_post_info', 'sp_post_info_filter' ); |
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
<link rel="author" href="https://plus.google.com/u/0/#########/" /> |
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 full content for particular category */ | |
add_action( 'genesis_before', 'child_conditional_actions' ); | |
function child_conditional_actions() { | |
if( is_category('174')) { | |
remove_action( 'genesis_entry_content', 'genesis_do_post_content' ); | |
add_action( 'genesis_entry_content', 'the_content' ); | |
remove_action( 'genesis_entry_header', 'genesis_do_post_title' ); | |
add_action('genesis_entry_footer', 'genesis_do_post_title'); | |
} | |
} |
OlderNewer