Skip to content

Instantly share code, notes, and snippets.

🚀
👨‍🏭

Jeremy Herve jeherve

🚀
👨‍🏭
Block or report user

Report or block jeherve

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jeherve
jeherve / plugin.php
Created Mar 4, 2014
[Jetpack] Check of Tonesque's file is readable https://cloudup.com/cKET0dvWlaX
View plugin.php
<?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+
*/
@jeherve
jeherve / plugin.php
Last active Aug 29, 2015
Custom home query - remove sticky posts
View plugin.php
<?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 );
@jeherve
jeherve / style.css
Created Mar 28, 2014
Facebook - No Ads - 03/2014
View style.css
/* No Ads */
.rightColumnWrapper #pagelet_ego_pane {
display: none;
}
@jeherve
jeherve / style.css
Created Mar 28, 2014
Youtube - hide " this account is managed by"
View style.css
div#confirmBox { display: none; }
View style.css
#wpadminbar #wp-admin-bar-notes, .dash-header #wp-admin-bar-notes, #newnavwrapper #wp-admin-bar-notes {
display:none;
}
@jeherve
jeherve / plugin.php
Last active Aug 29, 2015
[Jetpack] Change og:title value to be all uppercase
View plugin.php
<?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+
*/
@jeherve
jeherve / plugin.php
Created Jul 23, 2014
[Jetpack] Verify your site with Facebook by adding an admin meta tag to the head of your site. Works when Jetpack is enabled. http://i.wpne.ws/WiUs
View plugin.php
<?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+
*/
@jeherve
jeherve / style.css
Created Aug 11, 2014
[Jetpack] Wide Infinite Scroll container
View style.css
#infinite-footer .container {
width: 100%;
}
@jeherve
jeherve / plugin.php
Created Jun 10, 2015
Disable Jetpack's Twitter Meta Tags
View plugin.php
<?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+
*/
@jeherve
jeherve / plugin.php
Created Feb 28, 2014
[Jetpack] Related Posts: retrieve Related Posts manually, and return post titles
View plugin.php
<?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 )
You can’t perform that action at this time.