This file has been truncated, but you can view the full file.
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
{"type":"FeatureCollection","features":[ | |
{"type":"Feature","id":"AC","properties":{"name":"Acre","sigla":"AC"},"geometry":{"type":"Polygon","coordinates":[[[-73.332510999999897,-7.324878999999896],[-73.274817,-7.350334],[-72.870164,-7.528881999999896],[-72.691514,-7.610621],[-72.659348,-7.624979],[-72.189666,-7.720489],[-72.173179,-7.723841],[-72.023178,-7.769827],[-72.005143,-7.774846],[-71.569238,-7.874255],[-71.512985999999898,-7.887299],[-71.241607,-7.950207],[-70.937416,-8.01909],[-70.575844,-8.09594],[-70.550230999999883,-8.101379999999892],[-70.462364,-8.120046],[-70.427306,-8.12811],[-70.369521,-8.141402],[-70.296363,-8.180022],[-70.291695,-8.182485],[-70.283623,-8.186811],[-70.129500999999891,-8.269364],[-69.761276999999893,-8.466229],[-69.641479,-8.530838],[-69.553328,-8.57838],[-69.435775,-8.641597],[-69.178231,-8.767959],[-69.162169,-8.776353],[-68.989593,-8.866563],[-68.784995,-8.972589],[-68.750061,-8.988709],[-68.734749,-8.996609],[-68.728035,-9.000075],[-68.691001,-9.016635],[-68.620574,-9 |
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
Tutorial de Como Parar de Rasgar Dinheiro Anunciando Com Sites/Landing Pages em Wordpress | |
Todos nós sabemos que ter um site para anunciar é muito importante. Mas se você anuncia usando site as chances são de que você está rasgando dinheiro e nem sabe. 😨 | |
Por que digo isso? Basicamente porque a maioria dos anunciantes anunciam com páginas lentas. Uma pesquisa feita indica que se o seu site tem um LCP (Largest Contentful Paint) de 3s, você vai perder até 50% do tráfego. Pra ser mais claro, se atualmente você estiver investindo R$2.000 em anúncio com uma página com esse LCP, isso significa que R$1.000 estão indo diretamente para o lixo. 💸💸 (Você pode usar o GT Metrix para avaliar o seu site) | |
E olha que volta e meia vejo sites que batem 5s, 6s ou até 10s de LCP. | |
Entendeu agora a importância de ter um site rápido? | |
Por isso, depois de otimizar vários sites, eu separei um passo a passo detalhado para você parar de rasgar dinheiro e ter um site extremamente rápido. 🚀💪🏽 | |
Vamos lá então! | |
PRIMEIRO PASSO: USAR UMA CDN NO S |
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
add_shortcode('testar-gratis', function ($atts = array(), $content = null) { | |
$links = array( | |
array('link' => 'https://api.whatsapp.com/send?phone=5551982657024&text=Eu%20quero%20Informa%C3%A7%C3%B5es%20e%20testar!', 'title' => 'TESTAR GRÁTIS'), | |
array('link' => 'https://api.whatsapp.com/send?phone=555194485373&text=Eu%20quero%20Testar%20e%20mais%20informa%C3%A7%C3%B5es!', 'title' => 'TESTAR GRÁTIS'), | |
array('link' => 'https://api.whatsapp.com/send?phone=5551983166850&text=Eu%20E%20quero%20Informa%C3%A7%C3%B5es%20e%20testar!', 'title' => 'TESTAR GRÁTIS'), | |
array('link' => 'https://api.whatsapp.com/send?phone=5551982365761&text=Eu%20quero%20Informa%C3%A7%C3%B5es%20e%20testar!', 'title' => 'TESTAR GRÁTIS') | |
); | |
$r = array_rand($links); | |
return '<a href="' . $links[$r]['link'] . '">' . $links[$r]['title'] . '</a>'; | |
}); |
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
// Utility: Get the product brand term names (from the product ID) | |
// https://wordpress.org/plugins/perfect-woocommerce-brands/ | |
function wc_get_product_brand( $product_id ) { | |
return implode(', ', wp_get_post_terms($product_id, 'pwb-brand', ['fields' => 'names'])); | |
} | |
// Display product brand in Cart and checkout pages | |
add_filter( 'woocommerce_cart_item_name', 'customizing_cart_item_name', 10, 3 ); | |
function customizing_cart_item_name( $product_name, $cart_item, $cart_item_key ) { | |
$product = $cart_item['data']; // The WC_Product Object |
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
<!DOCTYPE html> | |
<html lang="pt-BR"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Co.wok Boa Viagem</title> | |
</head> | |
<body> | |
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
<!DOCTYPE html> | |
<html lang="pt-BR"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Beleleu Burger & Bar - Boa Viagem</title> | |
</head> | |
<body> | |
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
add_filter( 'woocommerce_package_rates', 'hide_shipping_methods_based_on_item_count', 10, 2 ); | |
function hide_shipping_methods_based_on_item_count( $rates, $package ) { | |
// HERE the targeted shipping method ID (see the attribute "value" of the related shipping method input field) | |
$targeted_method_id = 'flat_rate:12'; // <== Replace with your DHL shipping method ID | |
// HERE the articles count threshold | |
$more_than = 15; | |
// Cart items count | |
$item_count = WC()->cart->get_cart_contents_count(); |
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 Hide ARG | |
add_action( 'woocommerce_before_checkout_form', 'hide_arg' ); | |
function hide_arg() { | |
if ( ! is_user_logged_in() ) { | |
echo '<style type="text/css"> | |
.argmc-tabs-list, .argmc-nav, .argmc-form-steps-wrapper{ display: none !important; } | |
</style>'; | |
} | |
} |
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
/** | |
* Code goes in theme functions.php | |
* | |
* Add automatic NEW badge for x amount of days. | |
* | |
* Keep caching in mind! If you want to automatically update it on the frontend by using caching, you might want to look | |
* into a cron job that clears cache each day f.ex. https://docs.wp-rocket.me/article/494-how-to-clear-cache-via-cron-job | |
*/ | |
add_filter( 'flatsome_product_labels', function ( $text, $post, $product, $badge_style ) { | |
$datetime_created = $product->get_date_created(); |
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 wp_set_origin_cookie() { | |
$cookie_value = $_SERVER['HTTP_REFERER']; | |
if ( ! is_admin() && ! isset( $_COOKIE['origin'] ) ) { | |
setcookie( 'origin', $cookie_value, time() + 3600*24*30, COOKIEPATH, COOKIE_DOMAIN, false ); | |
} | |
} | |
add_action( 'init', 'wp_set_origin_cookie'); | |
function wp_add_order_referrer( $order ) { |
NewerOlder