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
// exclude My Account, Cart, and Checkout from sitemap created by Yoast SEO | |
// Woocommerce handles the no-index of these oages through robots.txt | |
add_filter( 'wpseo_exclude_from_sitemap_by_post_ids', function () { | |
return array( 311, 322 ); | |
} ); |
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
//disable WP Post Revisions | |
//insert above the ‘ABSPATH’ otherwise it won’t work | |
define('AUTOSAVE_INTERVAL', 300); // seconds | |
define('WP_POST_REVISIONS', false); // or any number of revisions <ou like to keep (ex. 3) |
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 | |
global $post; | |
if ( $post && $post->post_parent ) { | |
wp_redirect( get_permalink( $post->post_parent ), 301 ); | |
exit; | |
} else { | |
wp_redirect( home_url( '/' ), 301 ); | |
exit; | |
} |
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
# MAINTENANCE-PAGE REDIRECT | |
<IfModule mod_rewrite.c> | |
RewriteEngine on | |
RewriteCond %{REMOTE_ADDR} !^193\.158\.164\.23 | |
RewriteCond %{REQUEST_URI} !/underconstruction.html$ [NC] | |
RewriteCond %{REQUEST_URI} !\.(jpe?g?|png|gif) [NC] | |
RewriteRule .* /underconstruction.html [R=302,L] | |
</IfModule> | |
# END MAINTENANCE-PAGE REDIRECT |
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
/* | |
* Horizontal Ruler without <hr> (can be put in media queries instead of html) | |
*/ | |
.hdr-primary:before { | |
border: 1px solid $bg-html; | |
border-width: 1px 0; | |
content: ""; | |
display: block; | |
height: 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
/* apply a natural box layout model to all elements */ | |
* { | |
-moz-box-sizing: border-box; | |
-webkit-box-sizing: border-box; | |
box-sizing: border-box; | |
} |
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="skiplinks"> | |
<ul class="clearfix"> | |
<li class="visuallyhidden"><a href="#main-nav">Zur Hauptnavigation</a><span class="visuallyhidden"> . </span></li> | |
<li class="visuallyhidden"><a href="#content">Zum Inhalt</a><span class="visuallyhidden"> . </span></li> | |
<li class="visuallyhidden"><a href="#siteinfo">Zu den Kontakt-Informationen</a><span class="visuallyhidden"> . </span></li> | |
</ul> | |
</div> | |
<!-- Ende skiplinks --> |
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
/* H5BP image replacement: http://nicolasgallagher.com/another-css-image-replacement-technique/ */ | |
.ir { | |
border: 0; | |
font: 0/0 a; | |
text-shadow: none; | |
color: transparent; | |
background-color: transparent; | |
} |
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
zlib.output_compression = on |
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 gzip compression for javascript | |
RewriteEngine on | |
RewriteCond %{HTTP:Accept-Encoding} gzip | |
RewriteCond %{REQUEST_FILENAME}.gz -f | |
RewriteRule (.*)\.js$ $1\.js.gz [L] | |
AddType "text/javascript" .js.gz | |
AddEncoding gzip .gz |
NewerOlder