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
# BEGIN Enable Browser Caching | |
# | |
# Sources: | |
# http://stackoverflow.com/questions/7704624/how-can-i-use-gzip-compression-for-css-and-js-files-on-my-websites | |
# http://codex.wordpress.org/Output_Compression | |
# http://www.perun.net/2009/06/06/wordpress-websites-beschleuinigen-4-ein-zwischenergebnis/#comment-61086 | |
# http://www.smashingmagazine.com/smashing-book-1/performance-optimization-for-websites-part-2-of-2/ | |
# http://gtmetrix.com/configure-entity-tags-etags.html | |
# http://de.slideshare.net/walterebert/die-htaccessrichtignutzenwchh2014 | |
# http://de.slideshare.net/walterebert/mehr-performance-fr-wordpress |
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
# BEGIN Security | |
# | |
# Sources: | |
# https://premium.wpmudev.org/blog/5-simple-htaccess-tips-to-tighten-your-sites-security/ | |
# https://premium.wpmudev.org/blog/keeping-wordpress-secure-the-ultimate-guide/ | |
# https://gist.github.com/voneff/0daab6372769e9ef3d75 | |
# | |
# Protect htaccess From Unauthorized Access |
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
# Custom Security Measures by @voneff | |
# | |
# Sources: | |
# @link https://gist.github.com/voneff/f66128aaacd350294e8a | |
# @link https://premium.wpmudev.org/blog/keeping-wordpress-secure-the-ultimate-guide | |
# @link https://kinsta.com/blog/wp-config-php/ | |
# @link https://kittpress.com/wordpress-sicherheit-2-erste-konfiguration/ | |
# | |
# Turn Off PHP Error Reporting: |
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 | |
/* | |
* Use this funtion to delete the custom post type registered by the plugin "Essential Grid" | |
* Alternative method to the one proposed by plugin authors: | |
* https://www.themepunch.com/faq/hide-ess-grid-posts-custom-post-type-from-wp-main-menu/ | |
* | |
* Usage for other CPT: Replace 'essential_grid' with the slug of the custom post type | |
* | |
* Sources: | |
* https://gist.github.com/johnkolbert/769160 |
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 | |
/* | |
* Disable version information from being displayed in the header or RSS feed | |
* | |
* Sources: | |
* http://torquemag.io/2016/06/keep-your-wordpress-site-safe-with-these-four-tips/ | |
*/ | |
function disable_version_info() { |
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
/* | |
* Active hyphenation in all texts | |
* | |
* Sources: | |
* https://css-tricks.com/almanac/properties/h/hyphenate/#comment-1596240 | |
* https://justmarkup.com/log/2015/07/dealing-with-long-words-in-css/ | |
*/ | |
.body { | |
overflow-wrap: break-word |
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="frm_field_[id]_container" class="frm_form_field form-field [required_class][error_class]"> | |
<label class="frm_primary_label">[field_name] | |
<span class="frm_required">[required_label]</span> | |
</label> | |
<div class="frm_opt_container"> | |
<div style="float:left;padding-right:80px;">[input opt=1][input opt=2][input opt=3][input opt=4][input opt=5][input opt=6]</div> | |
<div style="float:left;padding-right:80px;">[input opt=7][input opt=8][input opt=9][input opt=10][input opt=11][input opt=12]</div> | |
<div style="float:left;">[input opt=13][input opt=14][input opt=15][input opt=16][input opt=17][input opt=18]</div> | |
</div> | |
[if description]<div class="frm_description">[description]</div>[/if description] |
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
# BEGIN Disable PHP Execution | |
# | |
# Source: | |
# http://www.wpbeginner.com/wp-tutorials/how-to-disable-php-execution-in-certain-wordpress-directories | |
# | |
<Files *.php> | |
deny from all | |
</Files> |
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
/* Enabling standard ligatures and other OpenType features */ | |
/* Source: https://app.typographychecklist.com/ */ | |
/* Source: http://typographyhandbook.com/#opentype-features */ | |
body, p { | |
font-kerning: normal; | |
font-variant-ligatures: common-ligatures contextual; | |
-moz-font-feature-settings: "kern", "liga", "clig", "calt"; | |
-ms-font-feature-settings: "kern", "liga", "clig", "calt"; | |
-webkit-font-feature-settings: "kern", "liga", "clig", "calt"; |
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
# BEGIN Cache Enabler | |
# Sources: | |
# https://fastwp.de/6687/ | |
# https://www.keycdn.com/support/wordpress-cache-enabler-plugin/ | |
# | |
# BEGIN Cache Enabler | |
<IfModule mod_rewrite.c> | |
RewriteEngine On |
OlderNewer