This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Plugin Name: Genesis - Facebook SDK | |
| * Plugin URI: https://fatpony.me/ | |
| * Description: Adds the Facebook SDK script just after the opening <body> tag on Genesis Framework sites. | |
| * Version: 1.0.0 | |
| * Author: Erica Franz | |
| * Author URI: https://fatpony.me/ | |
| * License: GPL2 | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $(document).keyup(function(e) { | |
| if (e.keyCode == 27) { // escape key maps to keycode `27` | |
| if( typeof window.ikhc6rkql15ly9mx !=='undefined') { | |
| window.ikhc6rkql15ly9mx.close(true); | |
| } | |
| } | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script type="text/javascript"> | |
| var om_load_jquery = false; | |
| </script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Target the first linked image in the gallery - best when loading a single gallery on the page | |
| jQuery(window).load(function(){ | |
| jQuery(".envira-gallery-wrap .envira-gallery-item:first-child a").trigger('click'); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** Remove the close icon from Envira Gallery lightbox view. **/ | |
| .envirabox-wrap a.envirabox-close { display: none; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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 | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #BEGIN Force SSL | |
| RewriteEngine On | |
| RewriteCond %{HTTPS} !=on | |
| RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R=301,L] | |
| #END Force SSL |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php //* <--- Do not include this opening tag or site may implode | |
| // Add to the allowed tags array and hook into Init | |
| function om_monsterlinks_allowed_tags() { | |
| global $allowedtags; | |
| $allowedtags['a'] = array('style'=>array( | |
| 'data-optin-slug' => true, | |
| ),); | |
| } | |
| add_action('init', 'om_monsterlinks_allowed_tags', 10); |