Hexadecimal color code for transparency
How to set transparency with hex value ?
For example, you want to set 40% alpha transparence to #000000
(black color), you need to add 66
like this #66000000
.
javascript: Promise.all([import('https://unpkg.com/turndown@6.0.0?module'), import('https://unpkg.com/@tehshrike/readability@0.2.0'), ]).then(async ([{ | |
default: Turndown | |
}, { | |
default: Readability | |
}]) => { | |
/* Optional vault name */ | |
const vault = ""; | |
/* Optional folder name such as "Clippings/" */ |
For example, you want to set 40% alpha transparence to #000000
(black color), you need to add 66
like this #66000000
.
<?php | |
function the_product_price($product){ | |
//get the sale price of the product whether it be simple, grouped or variable | |
$sale_price = '<span class="new">'.get_post_meta( get_the_ID(), '_price', true).'</span>'; | |
//get the regular price of the product, but of a simple product | |
$regular_price = get_post_meta( get_the_ID(), '_regular_price', true); | |
//oh, the product is variable to $sale_price is empty? Lets get a variation price |
<?php | |
/** | |
* Add order again button in my orders actions. | |
* | |
* @param array $actions | |
* @param WC_Order $order | |
* @return array | |
*/ | |
function cs_add_order_again_to_my_orders_actions( $actions, $order ) { | |
if ( $order->has_status( 'completed' ) ) { |
<?php | |
/* Add this to you (child-)theme functions.php file, on a (mu-)plugin or with a plugin like Code Snippets https://wordpress.org/plugins/code-snippets/ */ | |
add_filter( 'shop_as_client_pro_customer_data', 'my_shop_as_client_pro_customer_data', 10, 3 ); | |
function my_shop_as_client_pro_customer_data( $data, $customer = null, $order = null ) { | |
//Are we getting a "customer" object? | |
if ( $customer ) { | |
//Custom checkout field with id "billing_xpto" | |
$data['billing']['xpto'] = $customer->get_meta( 'billing_xpto' ); |
@php(the_content()) | |
@if($images) | |
@include('partials/slider') | |
@endif |