Skip to content

Instantly share code, notes, and snippets.

View ericakfranz's full-sized avatar

Erica Franz ericakfranz

View GitHub Profile
<?php
/**
* Plugin Name: Soliloquy - Reload Page on Navigation Click and Scroll to Slider Container
* Plugin URI: https://longren.io/soliloquy-reload-page-on-navigation-click-and-scroll-to-slider-container
* Version: 1.0
* Author: Tyler Longren
* Author URI: https://longren.io/
* Description: Reloads the entire Page when the next or previous arrows are clicked, or the pager navigation is used. The correct slide is injected into the URL and scrolls to the slider container.
*
* Based on the original plugin from Tim Carr (http://www.n7studios.co.uk). This simply takes the user to the slider after the page reload, good for sliders at the end of posts/pages.
@ericakfranz
ericakfranz / wp-menu-monsterlink.php
Created April 27, 2015 15:40
From http://wordpress.stackexchange.com/questions/121123/how-to-add-a-data-attribute-to-a-wordpress-menu-item OptinMonster MonsterLink from WordPress menu by adding data-optin-slug attribute.
<?php
/**
* Plugin Name: Envira Gallery - Image Captions below Thumbnails
* Plugin URI: http://enviragallery.com
* Version: 1.0
* Author: Tim Carr
* Author URI: http://www.n7studios.co.uk
* Description: Display captions below images
*/
@ericakfranz
ericakfranz / om-canvas-set-cookie.js
Created April 30, 2015 19:54
Simulate a submit button click in Canvas to set a cookie.
@ericakfranz
ericakfranz / soliloquy_remove_license_info.php
Created May 7, 2015 15:55
Soliloquy Remove License Info
<?php
/**
* Plugin Name: Soliloquy - Remove License Info
* Plugin URI: http://soliloquywp.com
* Version: 1.0
* Author: Thomas Griffin
* Author URI: http://www.thomasgriffin.io
* Description: Removes the Settings menu and license notices.
*/
@ericakfranz
ericakfranz / envira-hide-from-search-results.php
Created May 8, 2015 00:17
Exclude Envira Galleries from search results.
add_filter( 'envira_gallery_post_type_args', 'filter_envira_search' );
function filter_envira_search( $args ) {
$args['exclude_from_search'] = true;
return $args;
}
<?php
/**
* Plugin Name: Soliloquy - Change YouTube Video Arguments
* Plugin URI: http://soliloquywp.com
* Version: 1.0
* Author: Tim Carr
* Author URI: http://www.n7studios.co.uk
* Description: Add, edit or remove arguments for the YouTube Video Slides
*/
@ericakfranz
ericakfranz / soliloquy-change-wistia-arguments.php
Created June 15, 2015 18:13
Soliloquy change Wistia Video Arguments
<?php
/**
* Plugin Name: Soliloquy - Change Wistia Video Arguments
* Plugin URI: http://soliloquywp.com
* Version: 1.0
* Author: Erica Franz
* Author URI: https://fatpony.me
* Description: Add, edit or remove arguments for the Wistia Video Slides
*/
<?php
/**
* Plugin Name: Soliloquy - Reload Soliloquy on Click
* Plugin URI: http://soliloquywp.com
* Version: 1.0
* Author: Tim Carr
* Author URI: http://www.n7studios.co.uk
* Description: Registers a click handler to reload Soliloquy layouts. Useful when a Soliloquy slider isn't visible on page load.
*/
@ericakfranz
ericakfranz / soliloquy-caption-inside-slide-link.php
Created July 6, 2015 23:43
Move Soliloquy slider caption inside slide link tag and remove default caption output.