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
/* | |
* # Custom Gravity Forms Checkbox & Radio Button Styles - v.1.0 | |
* Author: [Daniel McClure](https://www.danielmcclure.com/code/) | |
* License: MIT | |
*/ | |
/* Base input and label configuration */ | |
.gfield_checkbox li, | |
.gfield_radio li { | |
position: relative; |
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 | |
// Disable Jetpack Nags Inside WordPress Admin Dashboard | |
add_filter( 'jetpack_just_in_time_msgs', '_return_false' ); |
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 WooCommerce Theme Support admin message | |
add_theme_support( 'woocommerce' ); |
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
/* ---------- 6.1 Hero Video ---------- */ | |
.home .page-header { | |
padding: 24rem 0 7rem; | |
height: 75vh; | |
overflow: hidden; | |
} | |
#bgvid { | |
position: absolute; | |
top: 0; | |
left: 0; |
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 | |
// Add the following to wp-config.php to hide the Cloudflare API Key in WP Rocket | |
define( 'WP_ROCKET_CF_API_KEY_HIDDEN', 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
<?php | |
// Enqueue Font Awesome 5 in WordPress | |
function tme_load_font_awesome() { | |
// You can find the current URL for the latest version here: https://fontawesome.com/start | |
wp_enqueue_style( 'font-awesome-free', '//use.fontawesome.com/releases/v5.6.3/css/all.css' ); | |
} | |
add_action( 'wp_enqueue_scripts', 'tme_load_font_awesome' ); |
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 | |
// Remove Dashicons in WordPress front-end for logged out users | |
add_action( 'wp_enqueue_scripts', 'tme_dequeue_dashicons' ); | |
function tme_dequeue_dashicons() { | |
if ( ! is_user_logged_in() ) { | |
wp_deregister_style( 'dashicons' ); | |
} | |
} |
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 | |
/* | |
* Better WordPress Error Reporting Configuration | |
* | |
* Instructions: Add the following code to your `wp-config.php` file before the stop editing notice. | |
*/ | |
// PHP Error Reporting | |
ini_set('log_errors', 1); // Enable PHP Error Reporting | |
ini_set('display_errors', 0); // Hide errors from front-end |
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 | |
// Disable JetPack Callbacks to WP | |
define( 'JETPACK_DEV_DEBUG', 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
<?php | |
// Disable OptinMonster for Users With Specific Roles | |
function om_docs_hide_optin_for_user_roles( $campaigns ) { | |
// Do nothing if no user is logged in. | |
if ( ! is_user_logged_in() ) { | |
return $campaigns; | |
} |