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
.site-title a::before { | |
background-image: url(logo.png); | |
background-size: 46px 26px; | |
background-repeat: no-repeat; | |
display: inline-block; | |
width: 46px; | |
height: 26px; | |
content: ""; | |
margin-right: 18px; | |
margin-bottom: -2px; |
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 Page Excerpts | |
add_action( 'init', 'my_add_excerpts_to_pages' ); | |
function my_add_excerpts_to_pages() { | |
add_post_type_support( 'page', 'excerpt' ); | |
} |
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
// filter: | |
// none | blur(px) | brightness(%) | contrast(%) | drop-shadow(h-shadow v-shadow blur spread color) | | |
// grayscale(%) | hue-rotate(deg) | invert(%) | opacity(%) | saturate(%) | sepia(%) | url(); | |
// initial inerit | |
.class .class img { | |
-webkit-filter: grayscale(100%); | |
filter: grayscale(100%); | |
} |
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
# Redirect domain to https, subdomain to https and non-www to www | |
# http://stackoverflow.com/questions/37614937/htaccess-redirect-domain-to-https-subdomain-to-https-and-non-www-to-www | |
RewriteEngine on | |
# redirect no-www to www only main domain, not with subdomain | |
RewriteCond %{HTTP_HOST} ^(domain\.com)$ [NC] | |
RewriteRule ^ https://www.%1%{REQUEST_URI} [R=301,L] | |
# redirect http to https all domain |
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
# Redirect from old domain to new domain | |
RewriteEngine On | |
RewriteCond %{HTTP_HOST} ^domainold.com$ [OR] | |
RewriteCond %{HTTP_HOST} ^www.domainold.com$ | |
RewriteRule (.*)$ http://www.domainnew.com/$1 [R=301,L] |
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
# Block crawl bots .htaccess | |
# BEGIN Seguridad bots | |
RewriteEngine On | |
RewriteCond %{HTTP_USER_AGENT} ^Bingbot [OR] | |
RewriteCond %{HTTP_USER_AGENT} ^bingbot | |
RewriteRule ^.* - [F,L] | |
# END Seguridad bots |
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
User-agent: Bingbot | |
Disallow: / |
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
// Customize WordPress login logo image | |
function my_login_logo() { ?> | |
<style type="text/css"> | |
#login h1 a, .login h1 a { | |
background-image: url('<?php echo get_stylesheet_directory_uri();?>/screenshot.png') !important; | |
width: 320px !important; | |
height: 240px !important; | |
background-size: 320px 240px !important; | |
} | |
</style> |
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 Genesis Footer Credit Copyright line | |
add_filter( 'genesis_footer_creds_text', 'wpb_footer_copyright_text' ); | |
/** | |
* Change Genesis Footer Credit Copyright line | |
* @link http://wpbeaches.com/changing-genesis-theme-copyright-line-footer-wordpress/ | |
*/ | |
function wpb_footer_copyright_text () { | |
$copyright = '<div class="creditline"><p>Copyright ©' . date('Y') . ' · <a href="http://www.domain.com/">Site Name</a> · <a href="#">Link</a> · <a href="#">Link</a> · Site Description.</p></div>'; | |
return $copyright; |
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
# Domain 301 redirection from HTTP to HTTPS | |
RewriteCond %{SERVER_PORT} 80 | |
RewriteRule ^(.*)$ https://www.yoursite.com/$1 [R=301,L] |