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
/* Remove product meta on page product*/ | |
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_meta', 40 ); |
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
// Change the separator title site | |
// Mudar o separador do título do site | |
add_filter( 'document_title_separator', 'change_title_separator' ); | |
function change_title_separator() { | |
return '|'; | |
} |
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
// Remove the additional information tab | |
function woo_remove_product_tabs( $tabs ) { | |
unset( $tabs['additional_information'] ); | |
return $tabs; | |
} | |
add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs', 98 ); |
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
// Remove strength password register woocommerce | |
function fa_remove_password_strength() { | |
wp_dequeue_script( 'wc-password-strength-meter' ); | |
wp_deregister_script( 'wc-password-strength-meter' ); | |
} | |
add_action( 'wp_enqueue_scripts', 'fa_remove_password_strength', 99999 ); |
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
// MOSTRAR OS REVIEWS DE PRODUTOS NO WOOCOMMERCE DO MAIS NOVO PRO MAIS VELHO | |
add_filter( 'woocommerce_product_review_list_args', 'newest_reviews_first' ); | |
function newest_reviews_first($args) { | |
$args['reverse_top_level'] = true; | |
return $args; | |
} |
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
//Run server | |
ng serve | |
//Create project | |
ng new nameproject | |
//Create new component | |
ng generate component namecomponent | |
short version: ng g c namecomponent |
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
<p>Number Input</p> | |
<input type="number" id="el_number" min="1" max="99" maxlength="2" /> | |
<style> | |
input{ | |
width : 200px; | |
height: 30px; | |
} | |
</style> | |
<script> | |
let numb = document.getElementById("el_number"); |
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
/* força mostrar o formulário de cálculo de frete no carrinho */ | |
.shipping-calculator-form{ | |
display:block !important; | |
} | |
/*Oculta os campos de país, estado e cidade*/ | |
.shipping-calculator-button, | |
#calc_shipping_country_field, | |
#calc_shipping_state_field, | |
#calc_shipping_city_field{ | |
display: none !important; |
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_filter( 'woocommerce_ship_to_different_address_checked', '__return_true' ); | |
?> |
OlderNewer