Skip to content

Instantly share code, notes, and snippets.

View n7studios's full-sized avatar

Tim Carr n7studios

View GitHub Profile
@n7studios
n7studios / autoptimize-inline-js-minification-fault.php
Created May 16, 2016 12:49
Autoptimize Inline Javascript Minification Fault
<?php
/**
* Plugin Name: Autoptimize Inline JS Fault
* Plugin URI: http://www.n7studios.co.uk
* Description: Demonstrates a fault with Autoptimize where "Also aggregate inline JS" is enabled but not honoured.
* Author: Tim Carr
* Author URI: http://www.n7studios.co.uk
* Version: 1.0.0
*/
@n7studios
n7studios / envira-gallery-remove-image-links-mobile.php
Created February 23, 2016 17:51
Envira Gallery - Remove Image Links on Mobile
@n7studios
n7studios / envira-gallery-display-image-titles-in-lightbox.php
Last active February 11, 2016 18:12
Envira Gallery - Display Image Titles in Lightbox
@n7studios
n7studios / comment-rating-field-pro-remove-css-js.php
Created January 24, 2016 13:33
Comment Rating Field Pro - Remove CSS and JS
<?php
/**
* Plugin Name: Comment Rating Field Pro - Remove CSS and JS
* Plugin URI: http://www.wpcube.co.uk/plugins/comment-rating-field-pro-plugin
* Version: 1.0.0
* Author: WP Cube
* Author URI: http://www.wpcube.co.uk
* Description: Unregisters CSS and JS for CRFP Pro. Remember, you'll now need to supply your own CSS and JS
*/
@n7studios
n7studios / soliloquy-lite-remove-add-slideshow-button.php
Created January 21, 2016 17:59
Soliloquy Lite - Remove Add Slideshow Button
<?php
/**
* Plugin Name: Soliloquy - Remove Add Slideshow Button
* Plugin URI: http://soliloquywp.com
* Version: 1.0
* Author: Tim Carr
* Author URI: http://www.n7studios.co.uk
* Description: Removes the Add Slideshow button from all Visual Editors in WordPress
*/
@n7studios
n7studios / soliloquy-remove-add-slideshow-button.php
Created January 21, 2016 17:50
Soliloquy - Remove Add Slideshow Button
<?php
/**
* Plugin Name: Soliloquy - Remove Add Slideshow Button
* Plugin URI: http://soliloquywp.com
* Version: 1.0
* Author: Tim Carr
* Author URI: http://www.n7studios.co.uk
* Description: Removes the Add Slideshow button from all Visual Editors in WordPress
*/
@n7studios
n7studios / wp-to-buffer-pro-change-featured-image.php
Last active January 28, 2016 20:48
WordPress to Buffer Pro - Change Featured Image
@n7studios
n7studios / fails.php
Created January 15, 2016 17:13
Gravity Forms Contains Issue
$entries = GFAPI::get_entries( 0, array(
'status' => 'active',
'field_filters' => array(
array(
'key' => 'source_url',
'operator' => 'contains',
'value' => 'http://127.0.0.1/nursery',
),
),
) );
@n7studios
n7studios / envira-standalone-enable-comments.php
Last active February 23, 2016 16:35
Envira Gallery - Standalone Addon - Enable Comments
<?php
/**
* Plugin Name: Envira Gallery - Standalone Addon - Enable Comments
* Plugin URI: http://enviragallery.com
* Version: 1.0.0
* Author: Tim Carr
* Author URI: http://www.n7studios.co.uk
* Description: Enables comments for Envira CPT
*/
@n7studios
n7studios / pagination.css
Created November 23, 2015 12:02
Envira Gallery - Pagination Styling
div.envira-pagination {
width: 100%;
text-align: center;
}
div.envira-pagination span.page-numbers, div.envira-pagination a.page-numbers {
display: inline-block;
height: 43px;
padding: 0 15px;
line-height: 43px;
text-align: center;