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
/* | |
flatsome [ux-countdown] shortcode usage | |
*/ | |
//Admin side shortcode | |
[ux_countdown year="2019" month="10" day="30" time="15:00"] | |
//Add below in functions.php | |
echo do_shortcode('[ux_countdown year="2019" month="10" day="30" time="15:00"]'); |
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
function holiday_message_before_header() { | |
?> | |
<div class="header-block"> | |
<?php echo do_shortcode( '[block id="YOUR BLOCK NAME"]' ); ?> | |
</div> | |
<?php | |
} | |
add_action( 'flatsome_before_header', 'holiday_message_before_header', 1 ); |
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
/* SIDE NAV CSS DESKTOP */ | |
.mfp-content { | |
width: 30% !important; | |
/* OPTION TO MAKE NAV TRANSPARENT */ | |
/* DELETE OR TURN TO 1 IF YOU DONT WANT THE MENU TO BE TRANSPARENT */ | |
opacity: 0.95 !important; | |
} | |
li.html.custom.html_nav_position_text { | |
padding: 0px; | |
} |
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
/* Flatsome testimonial customization */ | |
.testimonial-box { | |
margin-bottom: 50px; | |
border-radius: 7px; | |
-webkit-box-shadow: 0px 0px 10px 3px rgba(225,225,225,0.75); | |
-moz-box-shadow: 0px 0px 10px 3px rgba(225,225,225,0.75); | |
box-shadow: 0px 0px 10px 3px rgba(225,225,225,0.75); | |
} | |
.testimonial-box .testimonial-image { | |
top: -50px; |
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: Disable WooCommerce Admin | |
* Description: This plugin disables the new WooCommerce Admin package in WooCommerce. | |
* Version: 1.0 | |
*/ | |
add_filter( 'woocommerce_admin_disabled', '__return_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 // only copy if needed | |
/** | |
* Add a custom action to order actions select box on edit order page | |
* Only added for paid orders that haven't fired this action yet | |
* | |
* @param array $actions order actions array to display | |
* @return array - updated actions | |
*/ | |
function sv_wc_add_order_meta_box_action( $actions ) { |
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 // only copy this line if needed | |
add_filter( 'send_password_change_email', '__return_false' ); | |
add_filter( 'send_email_change_email', '__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
// Version 1.4 | |
const DAY_IN_SECONDS = 60*60*24; | |
const BLACKLISTED_URL_PARAMS = [ | |
'fbclid', // Google Ads click Id | |
'gclid', // Facebook click Id | |
'msclkid', // Micorosft Ads Click Id | |
]; | |
addEventListener('fetch', event => { |
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
### Sites: | |
https://gtmetrix.com/ | |
https://developers.google.com/speed/pagespeed/insights/ | |
### Plugins | |
https://wordpress.org/plugins/query-monitor/ | |
https://wordpress.org/plugins/autoptimize/ | |
https://wordpress.org/plugins/wp-super-cache/ | |
https://wordpress.org/plugins/ewww-image-optimizer/ | |
https://wordpress.org/plugins/jetpack/ |