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
import autoprefixer from "gulp-autoprefixer"; | |
import babelify from "babelify"; | |
import browserify from "browserify"; | |
import browserSync from "browser-sync"; | |
import buffer from "vinyl-buffer"; | |
import cleanCSS from "gulp-clean-css"; | |
import del from "del"; | |
import gulp from "gulp"; | |
import rename from "gulp-rename"; | |
import sass from "gulp-sass"; |
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
import autoprefixer from "gulp-autoprefixer"; | |
import babelify from "babelify"; | |
import browserify from "browserify"; | |
import browserSync from "browser-sync"; | |
import buffer from "vinyl-buffer"; | |
import cleanCSS from "gulp-clean-css"; | |
import del from "del"; | |
import gulp from "gulp"; | |
import rename from "gulp-rename"; | |
import sass from "gulp-sass"; |
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
import autoprefixer from "gulp-autoprefixer"; | |
import babelify from "babelify"; | |
import browserify from "browserify"; | |
import browserSync from "browser-sync"; | |
import buffer from "vinyl-buffer"; | |
import cleanCSS from "gulp-clean-css"; | |
import del from "del"; | |
import gulp from "gulp"; | |
import rename from "gulp-rename"; | |
import sass from "gulp-sass"; |
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
add_filter( 'emoji_svg_url', '__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 Gutenberg Block Library CSS from loading on the frontend | |
*/ | |
function remove_wp_block_library_css() { | |
wp_dequeue_style( 'wp-block-library' ); | |
wp_dequeue_style( 'wp-block-library-theme' ); | |
wp_dequeue_style( 'wc-block-style' ); // Remove WooCommerce block CSS | |
} | |
add_action( 'wp_enqueue_scripts', 'remove_wp_block_library_css', 100 ); |
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
<div class="o-form-wrapper"> | |
<div class="c-form"> | |
<div class="c-form__row"> | |
<fieldset class="c-form__fieldset"> | |
<label for="name" class="c-form__label u-b2"> | |
Your full name<span class="c-form__required">*</span> | |
</label> | |
[text* your-name id:name class:u-b0 class:c-form__input placeholder "Your full name here"] | |
</fieldset> | |
</div> |
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 | |
/** | |
* Disabling emoji library from Wordpress. | |
*/ | |
function disable_emojis() { | |
// Let's remove a bunch of actions & filters. | |
remove_action( 'wp_head', 'print_emoji_detection_script', 7 ); | |
remove_action( 'admin_print_scripts', 'print_emoji_detection_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
<?php | |
/** | |
* Remove embeds | |
*/ | |
function disable_embeds_code_init() { | |
// Remove the REST API endpoint. | |
remove_action( 'rest_api_init', 'wp_oembed_register_route' ); |
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 JQuery migrate | |
function remove_jquery_migrate( $scripts ) { | |
if ( ! is_admin() && isset( $scripts->registered['jquery'] ) ) { | |
$script = $scripts->registered['jquery']; | |
if ( $script->deps ) { | |
// Check whether the script has any dependencies | |
$script->deps = array_diff( $script->deps, array( 'jquery-migrate' ) ); |
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 | |
/** | |
* Disabling emoji library from Wordpress. | |
*/ | |
function disable_emojis() { | |
// Let's remove a bunch of actions & filters. | |
remove_action( 'wp_head', 'print_emoji_detection_script', 7 ); | |
remove_action( 'admin_print_scripts', 'print_emoji_detection_script' ); | |
remove_action( 'wp_print_styles', 'print_emoji_styles' ); |