This file contains 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
<form id="paypalFeeCalculator"> | |
<div class="form-group"> | |
<label class="form-label">Enter An Amount (USD)</label> | |
<div class="input-group box-lr"> | |
<span class="input-group-text">$</span> | |
<input type="number" step="any" id="amount" class="form-control" required> | |
</div> | |
</div> | |
<div class="form-group"> | |
<label class="form-label">Fee Rate</label> |
This file contains 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
<form id="salesTaxCalculator" class="block-half has-border"> | |
<div class="form-group my-3"> | |
<label class="form-check form-check-inline"> | |
<input class="form-check-input" type="radio" name="taxType" value="exclusive"> | |
<span class="form-check-label">Tax Exclusive</span> | |
</label> | |
<label class="form-check form-check-inline"> | |
<input class="form-check-input" type="radio" name="taxType" value="inclusive"> | |
<span class="form-check-label">Tax Inclusive</span> | |
</label> |
This file contains 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 | |
// Code begins here. It can be pasted into WPCode or CodeSnippets plugin or functions.php file of your child theme | |
function my_custom_gravatar($avatar, $id_or_email, $size, $default, $alt) { | |
$email = ''; | |
if (is_numeric($id_or_email)) { | |
$id = (int) $id_or_email; | |
$user = get_userdata($id); | |
if ($user) $email = $user->user_email; | |
} elseif (is_object($id_or_email)) { | |
if (!empty($id_or_email->user_id)) { |
This file contains 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_action( | |
'enqueue_block_editor_assets', | |
function () { | |
$theme = wp_get_theme(); | |
wp_enqueue_style( | |
'block-md-custom-css', '/wp-content/themes/Md/custom-editor.css?v=202310' | |
); | |
wp_enqueue_script( | |
'md-wp-editor-class', '/wp-content/themes/Md/backend-js.js?v=202310'); | |
} |
This file contains 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
@media (max-width:1100px){ | |
/* Also works for .bleed class */ | |
.content-full .alignfull.bleed, .content-full .alignfull, .content-full .bleed { | |
left:50%; | |
right:50%; | |
position:relative; | |
margin-left: -50vw; | |
margin-right: -50vw; | |
max-width: 100vw; | |
} |
This file contains 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
#wp-custom(.*) | |
/wp-content/uploads/generateblocks/(.*).css | |
(.*)#ez-toc(.*) | |
(.*)#gspb(.*) | |
(.*).aawp(.*) | |
(.*).alert | |
(.*).align(.*) | |
(.*).animate | |
(.*).box(.*) | |
(.*).button |
This file contains 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_action( 'init', function() { | |
add_image_size( 'rename-this', 1200, 500, false ); | |
add_image_size( 'rename-again', 550, 550, true ); | |
} ); | |
// Add these sizes to Gutenberg | |
add_filter( 'image_size_names_choose','md_custom_image_sizes_gb' ); | |
function md_custom_image_sizes_gb( $sizes ) { |
This file contains 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_action('wp_enqueue_scripts', 'myown_remove_scripts'); | |
function myown_remove_scripts(){ | |
if ( function_exists( 'is_woocommerce' ) ) { | |
//dequeue scripts and styles from not WC pages | |
if ( ! is_woocommerce() && ! is_cart() && ! is_checkout() ) { | |
wp_dequeue_style( 'woocommerce-layout'); | |
wp_dequeue_style( 'woocommerce-smallscreen'); | |
wp_dequeue_style( 'woocommerce-general'); | |
wp_dequeue_script( 'wc_price_slider' ); |
This file contains 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 | |
if(!defined('WP_POST_REVISIONS')) define('WP_POST_REVISIONS',10); | |
?> |
This file contains 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 | |
function complete_version_removal(){return'';} | |
add_filter('the_generator','complete_version_removal'); | |
?> |