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 | |
/* Example Usage: | |
* bt_add_image_size( 'product-screenshot', 300, 300, array( 'left', 'top' ) ); | |
* bt_add_image_size( 'product-feature', 460, 345, array( 'center', 'top' ) ); | |
*/ | |
add_filter( 'intermediate_image_sizes_advanced', 'bt_intermediate_image_sizes_advanced' ); | |
add_filter( 'wp_generate_attachment_metadata', 'bt_generate_attachment_metadata', 10, 2 ); | |
/** |
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( 'admin_menu' , 'custom_remove_menu_pages' ); | |
function custom_remove_menu_pages() { | |
remove_menu_page( 'upload.php' ); | |
remove_menu_page( 'edit-comments.php' ); | |
remove_menu_page( 'themes.php' ); | |
remove_menu_page( 'tools.php' ); | |
} |
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
Para quem quiser liberar Frete Grátis por cidade/região faça o seguinte: | |
Na administração do seu site clique na barra lateral esquerda em | |
WooCommerce>Configurações>Entrega>Entrega Local | |
1º Ative a entrega local | |
2º Altere o titulo para: Frete Grátis | |
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 cs_woocommerce_add_to_cart_load() { | |
if ( is_product() ) { | |
?> | |
<script> | |
jQuery(document).ready(function($) { | |
$(".single_add_to_cart_button").on('click', function() { | |
$('<p><img src="LINK DA IMAGEM" alt="carregando" /></p>').insertAfter($(this)); | |
}); |
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
<div id="popup" style=""> | |
<a href="#" class="hidepopup">Fechar</a> | |
<?php //<a href="http://www.consorciosdahyundai.com.br/carros/"> ?> | |
<img src="<?php pauloimages('splash.jpg'); ?>"> | |
<?php //</a> ?> | |
</div> | |
<div class="overlaysplash"></div> | |
<style type="text/css"> | |
.overlaysplash { | |
background: rgba(0,0,0,0.75); |
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
<a href="<?php echo esc_url( $product->add_to_cart_url() ); ?>&variation_id=261&attribute_stock-colors=1">Add to Cart</a> |
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
<div class="form-group"> | |
<label>Nome:</label>[text* your-name class:form-control askimet:author] | |
</div> | |
<div class="form-group"> | |
<label>Email:</label>[email* your-email class:form-control akismet:author_email] | |
</div> | |
<div class="form-group"> | |
<label>Telefone:</label>[text your-phone class:form-control] | |
</div> | |
<div class="form-group"> |
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 | |
/** | |
* Customize Image Reloaded Class | |
* | |
* Extend WP_Customize_Image_Control allowing access to uploads made within | |
* the same context | |
*/ | |
class My_Customize_Image_Reloaded_Control extends WP_Customize_Image_Control { | |
/** | |
* Constructor. |
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
.btn-color { | |
background: @color; | |
border-color: darken(@color, 5%); | |
border-radius: 0; | |
text-transform: uppercase; | |
&:hover, | |
&:focus, | |
&:active, | |
&.active { | |
background: darken(@color, 8%); |
OlderNewer