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 | |
/* | |
* Plugin Name: Check Jetpack's Tonesque | |
* Plugin URI: http://wordpress.org/extend/plugins/jetpack/ | |
* Description: Check if the Tonesque file is readable | |
* Author: Jeremy Herve | |
* Version: 1.0 | |
* Author URI: http://jeremyherve.com | |
* License: GPL2+ | |
*/ |
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 | |
// Customize the loop on your home page only | |
function jeherve_custom_home_query( $query ) { | |
if ( ! $query->is_main_query() ) | |
return; | |
if ( ! $query->is_home() || ! $query->is_front_page() || is_admin() ) | |
return; | |
$query->set( 'ignore_sticky_posts', true ); |
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
/* No Ads */ | |
.rightColumnWrapper #pagelet_ego_pane { | |
display: none; | |
} |
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
div#confirmBox { display: none; } |
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
#wpadminbar #wp-admin-bar-notes, .dash-header #wp-admin-bar-notes, #newnavwrapper #wp-admin-bar-notes { | |
display:none; | |
} |
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 | |
/* | |
* Plugin Name: Uppercase og:title for Jetpack | |
* Plugin URI: http://wordpress.org/extend/plugins/jetpack/ | |
* Description: Removes Jetpack's default og:title tag, and replaces it with an uppercase og:title | |
* Author: Jeremy Herve | |
* Version: 1.0 | |
* Author URI: http://jeremyherve.com | |
* License: GPL2+ | |
*/ |
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 | |
/* | |
* Plugin Name: Verify your site with Facebook | |
* Plugin URI: http://wordpress.org/plugins | |
* Description: Verify your site with Facebook by adding an admin meta tag to the head of your site. Works when Jetpack is enabled. | |
* Author: Jeremy Herve | |
* Version: 1.0 | |
* Author URI: http://jeremy.hu | |
* License: GPL2+ | |
*/ |
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
#infinite-footer .container { | |
width: 100%; | |
} |
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 | |
/* | |
* Plugin Name: Disable Jetpack's Twitter Meta Tags | |
* Plugin URI: http://wordpress.org/plugins/ | |
* Description: Disable Jetpack's Twitter Meta Tags | |
* Author: Jeremy Herve | |
* Version: 1.0 | |
* Author URI: http://jeremy.hu | |
* License: GPL2+ | |
*/ |
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 | |
function jeherve_custom_related( $atts ) { | |
$posts_titles = array(); | |
if ( class_exists( 'Jetpack_RelatedPosts' ) && method_exists( 'Jetpack_RelatedPosts', 'init_raw' ) ) { | |
$related = Jetpack_RelatedPosts::init_raw() | |
->set_query_name( 'jeherve-shortcode' ) // Optional, name can be anything | |
->get_for_post_id( | |
get_the_ID(), | |
array( 'size' => 3 ) |
OlderNewer