Skip to content

Instantly share code, notes, and snippets.

View ericakfranz's full-sized avatar

Erica Franz ericakfranz

View GitHub Profile
@ericakfranz
ericakfranz / optin-monster-remove-search-results.php
Created July 8, 2015 14:59
Remove optins from search results when using the old WordPress-only OptinMonster plugin.
function optin_monster_exclude_from_search( $args ) {
$args['exclude_from_search'] = true;
return $args;
}
add_filter( 'optin_monster_post_type_args', 'optin_monster_exclude_from_search' );
@ericakfranz
ericakfranz / om-set-cookie.js
Created July 17, 2015 21:35
Set cookie for non-native integration submit or link click.
@ericakfranz
ericakfranz / soliloquy-autoplay-video-slides.php
Created July 31, 2015 01:48
Autoplay video sliders in Soliloquy. Works with all video types (self-hosted, YouTube, Vimeo and Wistia).
<?php
/**
* Plugin Name: Soliloquy - Autoplay Video Slides
* Plugin URI: http://soliloquywp.com/
* Description: Autoplay video sliders in Soliloquy. Works with all video types (self-hosted, YouTube, Vimeo and Wistia).
* Version: 1.0.0
* Author: Erica Franz
* Author URI: https://fatpony.me/
* License: GPL2
*/
@ericakfranz
ericakfranz / allow-monsterlinks-everywhere.php
Last active August 29, 2015 14:26
Allow more permissive filtering of Author Description field.
@ericakfranz
ericakfranz / .htaccess
Created September 5, 2015 02:20
Force SSL
#BEGIN Force SSL
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R=301,L]
#END Force SSL
@ericakfranz
ericakfranz / optinmonster-remove-optins-mobile.php
Created September 10, 2015 19:35
Remove all OptinMonster optins on mobile.
<?php
/**
* Plugin Name: OptinMonster - Remove Optins on Mobile Devices
* Plugin URI: http://optinmonster.com/
* Description: Remove all OptinMonster optins from mobile devices using wp_is_mobile();
* Version: 1.0.0
* Author: Erica Franz
* Author URI: https://fatpony.me/
* License: GPL2
*/
@ericakfranz
ericakfranz / envira-gallery-navigation-arrow-bg.css
Last active November 27, 2015 20:06
Change the default navigation arrow images used for Envira Gallery lightbox.
@ericakfranz
ericakfranz / envira-gallery-remove-close-icon.css
Last active November 13, 2015 15:09
Remove Envira Gallery lightbox close icon.
@ericakfranz
ericakfranz / envira-gallery-trigger-lightbox-onload-first-image.js
Last active November 13, 2015 21:36
Trigger click on image in an Envira gallery to load it's lightbox when the page finishes loading.
@ericakfranz
ericakfranz / wp-menu-monsterlink.php
Last active November 17, 2015 18:16
Add required link attributes to WordPress menu item for a MonsterLink.