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; | |
} |
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 | |
// Enabled Paired Mode (Recommended) | |
add_theme_support( 'amp', array( | |
'paired' => true, | |
) ); | |
// Enabled Native Mode (Less Functional) | |
add_theme_support( 'amp', array( | |
'paired' => false, // Force native mode |
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
pragma solidity ^0.5.0; | |
contract mortal { | |
/* Define variable owner of the type address */ | |
address owner; | |
/* This function is executed at initialisation and sets the owner of the contract */ | |
constructor() public { owner = msg.sender; } | |
/* Function to recover the funds of the contract */ |