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
| //RETIRAR O /CATEGORY DA URL | |
| add_filter('user_trailingslashit', 'remcat_function'); | |
| function remcat_function($link) { | |
| return str_replace("/category/", "/", $link); | |
| } |
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 | |
| /* | |
| Supondo que voce tenha um link de paginação parecida com http://seusite.com.br/blog/page/2 | |
| O rel = "canonical" é exibido como http://seusite.com.br/blog/page/2 | |
| Esse filtro serve para deixar o seu canical como: http://seusite.com.br/blog | |
| Evitando assim que o google considere páginas duplicadas | |
| */ | |
| //URL CANONICAL (coloque isso no seu function) | |
| function return_canon () { |
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
| # Estrutura de URL para WooCommerce | |
| https://wordpress.org/plugins/woo-permalink-manager/ |
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
| ## Comandos básicos ## | |
| git status (ver o status do git) | |
| git add . (para subir todos) | |
| git add nomedoaquivo.extrensao (subir arquivo especifico) | |
| git add * .extensao (subir arquivos dessa extensao) | |
| git add -u (deletar oq ta no status como delete) | |
| git commit -m "O COMENTARIO" (descrever oq vc ta subindo) | |
| git commit -a -m "O COMENTARIO" (ele pula a etapa do git add) | |
| git diff (ele mostra oq foi alterado nos arquivos modificados, antes de ter dado um git add) | |
| git diff --staged (ele mostra oq foi alterado nos arquivos modificados, depois de ter dado um git add, mas antes de dar um git commit) |
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"> |
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
| <!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
| 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
| <!-- 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
| <!-- 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($) { |