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
| <?php | |
| // ORDEM DO ARCHIVE | |
| add_filter('pre_get_posts', function ( $wp_query ) { | |
| if ( $wp_query->is_archive() && 'SLUGDOARCHIVE' === $wp_query->get('post_type') ) { | |
| $wp_query->set('meta_key', 'data_de_inicio'); | |
| $wp_query->set('orderby', 'meta_value'); | |
| $wp_query->set('order', 'ASC'); | |
| } | |
| return $wp_query; | |
| }); |
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
| <?php | |
| /* Coloque este código no teu functions.php */ | |
| //Mudar o Adicionar para Comprar agora no WooCommerce | |
| add_filter( 'woocommerce_product_single_add_to_cart_text', 'dmw_site_add_to_cart_text' ); | |
| function dmw_site_add_to_cart_text() { | |
| return __( 'Comprar agora', 'woocommerce' ); | |
| } | |
| //Mudar o Ver Opções para Comprar agora no WooCommerce |
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
| <?php | |
| /********* DO NOT COPY THE PARTS ABOVE THIS LINE *********/ | |
| /* Create Custom Yoast Sitemap | |
| * Credit: Unknown | |
| * Last Tested: Unknown | |
| ********* | |
| * HOW TO USE | |
| * Replace TYPE with your custom type | |
| */ |
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
| /* CHAT WHATSAPP */ | |
| #chatWhatsapp2 { position: fixed; bottom: 90px; right: 2%; cursor: pointer; z-index: 200; } | |
| #chatWhatsapp2 #btn { display: table; background: #294c04; color: #fff; text-align: center; border-radius: 100%; position: relative; font-size: 30px; z-index: 2; } | |
| #chatWhatsapp2 #btn i { } | |
| #chatWhatsapp2 #btn i.fa-whatsapp { line-height: 70px; width: 70px; } | |
| #chatWhatsapp2 #callto { -webkit-animation: slide-down .3s ease-out; -moz-animation: slide-down .3s ease-out; position: absolute; display: none; overflow: hidden; bottom: 130%; bottom: 0; right: 0; width: 298px; height: auto; font-size: 18px; z-index: 5; } | |
| #chatWhatsapp2 #callto a { display: block; width: 100%; height: auto; color: #fff; text-decoration: none; margin: 10px 0 0; padding: 0 8%; line-height: 30px; border-radius: 10px; text-align: left; position: relative; } | |
| #chatWhatsapp2 #callto a:last-of-type { border-bottom: none; } | |
| #chatWhatsapp2 #callto a i { font-size: 30px; line-height: 70px; width: 70px; background: #3f853b; text-align: ce |
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
| <!-- no formulário --> | |
| <input type="tel" id="phone" class="phone" name="phone" placeholder="Seu Telefone ou Whatsapp" autocomplete="off" required> | |
| <!-- biblioteca importante --> | |
| <script type="text/javascript" src="https://code.jquery.com/jquery-3.4.1.min.js"></script> | |
| <script type="text/javascript" src="assets/js/jquery.mask.js"></script> | |
| <!-- js para funcionar --> | |
| <script type="text/javascript"> | |
| (function($) { |
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
| <!-- OPÇÃO 1: Site Estático, de forma bem manual --> | |
| <picture> | |
| <source srcset="image.webp" type="image/webp"> | |
| <img src="image.png" alt="" title=""> | |
| </picture> | |
| <!-- TERMINA AQUI --> | |
| <!-- OPÇÃO2: Site estático, mas de forma automatia --> | |
| <!-- no css (caso seja necessário) --> | |
| <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
| User-agent: * | |
| Crawl-delay: 30 | |
| Disallow: /carrinho | |
| Disallow: /checkout | |
| Disallow: /produtos/buscar* | |
| Disallow: *?filter* | |
| Sitemap: URL DO XML |
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> | |
| <head> | |
| <title>Texto Randômico</title> | |
| </head> | |
| <body> | |
| <?php | |
| $linkArray = ['link', 'link2', 'link3']; | |
| $textoArray = ['texto 1', 'texto 2', 'texto 3']; | |
| $link = rand( 0, count( $linkArray ) - 1 ); |
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
| // Remove Formulário de Comentários no Front-end | |
| /* | |
| Remove o Formulário de Comentários dos Posts, mas deixa os comentários existentes. | |
| */ | |
| function cwp_desativa_comentarios_frontend() { | |
| return false; | |
| } | |
| add_filter('comments_open', 'cwp_desativa_comentarios_frontend', 20, 2); | |
| add_filter('pings_open', 'cwp_desativa_comentarios_frontend', 20, 2); |
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
| <!-- No HTML --> | |
| <form id="contactForm2" action="enviar.php" method="post"> | |
| <label class="my-2">Nome para contato:</label> | |
| <input class="form-control" type="text" name="Name" placeholder="Nome Completo" required=""> | |
| <label>Informe seu e-mail:</label> | |
| <input class="form-control" type="email" name="Email" placeholder="E-mail" required=""> | |
| <label class="my-2">Escolha o tipo de plano:</label> | |
| <select name="Subject" class="form-control"> |