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
Last active Jun 6, 2016
Create an ordered list of popular posts, using Jetpack's Site Stats. See wordpress.org/support/topic/2883315
View plugin.php
<?php
/**
* Create an ordered list of popular posts, using Jetpack's Site Stats.
*
* @see wordpress.org/support/topic/2883315
*/
function jeherve_new_top_posts() {
if ( ! function_exists( 'stats_get_csv' ) ) {
@jeherve
jeherve / plugin.php
Last active May 31, 2016
Random classes for each post.
View plugin.php
<?php
/**
* Plugin Name: Random classes for each post
* Plugin URI: http://jeremy.hu
* Description: Random classes for each post
* Version: 1.0
* Author: Jeremy Herve
* Author URI: http://jeremy.hu
* Text Domain: jeherve
* Domain Path: /languages/
@jeherve
jeherve / plugin.php
Created May 11, 2016
Jetpack's Top Posts Widget: add post date and post author below each post.
View plugin.php
<?php
/**
* Plugin Name: Top Posts Widget: add post date and post author below each post.
* Plugin URI: http://jeremy.hu
* Description: Top Posts Widget: add post date and post author below each post.
* Version: 1.0
* Author: Jeremy Herve
* Author URI: http://jeremy.hu
* Text Domain: jeherve
* Domain Path: /languages/
View keybase.md

Keybase proof

I hereby claim:

  • I am jeherve on github.
  • I am jeherve (https://keybase.io/jeherve) on keybase.
  • I have a public key ASAl-uJBAlYWAIQlao8U6zG1_YGVBgnxG-RXQjgUYZ_l0Qo

To claim this, I am signing this object:

@jeherve
jeherve / plugin.php
Last active Mar 1, 2016
[Themify Ultra / Jetpack's Photon module
View plugin.php
<?php
/**
* The theme appears to be using its own function, `themify_get_image()`, to build image URLs used to display images above posts.
* It can grab image details (like dimensions) from custom fields in each post,
* and then builds a custom HTML output based on parameters you can add to the function.
*
* Photon won't be able to support that, so they'll need to make these images don't get processed by Photon at all.
*
* Add the following to a functionality plugin to force Photon to ignore such images
*/
@jeherve
jeherve / plugin.php
Last active Feb 7, 2017
[Jetpack] Add tracking parameters to a post URL, and then have that tracked URL shortened by goo.gl, and then use that short URL in sharing buttons
View plugin.php
<?php
/**
* Overwrite the links used in Jetpack's Sharing module.
*
* @see https://wordpress.org/support/topic/how-to-use-utm-codes-with-jetpack-sharing
*
* @param string $url
* @param int $post_id
* @param int $sharing_id
* @filter sharing_permalink
@jeherve
jeherve / plugin.php
Created Nov 16, 2015
[Jetpack] Move Jetpack's sharing buttons from their default location to right under Woocommerce's product image.
View plugin.php
<?php
/**
* Move Jetpack's sharing buttons from their default location to right under Woocommerce's product image
*
* @see http://jetpack.me/2013/06/10/moving-sharing-icons/
* @see http://businessbloomer.com/woocommerce-move-jetpack-social-sharing-single-product-page-tabs/ for an alternative placement
*/
function jeherve_move_jp_sharing_icons_woo() {
// Start by checking if Jetpack's sharing buttons are actually in use on the site
@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
Last active May 14, 2016
[Jetpack] Remove all CSS.
View plugin.php
<?php
// First, make sure Jetpack doesn't concatenate all its CSS
add_filter( 'jetpack_implode_frontend_css', '__return_false' );
// Then, remove each CSS file, one at a time
// You probably won't need them all, unless you use all the modules, and all the themes! :)
// Some of these are also only loaded on specific admin pages, so it wouldn't affect your readers
function jeherve_remove_all_jp_css() {
wp_deregister_style( 'AtD_style' ); // After the Deadline
@jeherve
jeherve / style.css
Created Aug 11, 2014
[Jetpack] Wide Infinite Scroll container
View style.css
#infinite-footer .container {
width: 100%;
}
You can’t perform that action at this time.