Lupen-Icon im Sende-Button. Einmal als Symbol und das andere Mal als Font-Icon
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
# Dateien cachen | |
<FilesMatch "\.(ico|jpg|jpeg|png|gif|js|css|swf)$"> | |
ExpiresActive on | |
ExpiresDefault "access plus 35 days" | |
Header unset ETag | |
FileETag None | |
</FilesMatch> |
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
# Zugriff auf die xmlrpc.php unterbinden | |
<files xmlrpc.php> | |
Order deny,allow | |
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
<?php | |
// Als erstes sorgst du dafür dass nicht eine zusammenfassende CSS generiert wird | |
add_filter( 'jetpack_implode_frontend_css', '__return_false' ); | |
// Von den folgenden Angaben die entfernen, die du wirklich benötigst | |
function jeherve_remove_all_jp_css() { | |
wp_deregister_style( 'AtD_style' ); // Rechtschreibprüfung: After the Deadline | |
wp_deregister_style( 'jetpack_likes' ); // Gefällt mir | |
wp_deregister_style( 'jetpack_related-posts' ); // Ähnliche Beiträge |
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 | |
// Jetpack-JS für Gravatar entfernen | |
function dequeue_devicepx() { | |
wp_dequeue_script( 'devicepx' ); | |
} | |
add_action( 'wp_enqueue_scripts', 'dequeue_devicepx', 20 ); |
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
<h1>Nich-responsive Einbindung</h1> | |
<div title="Kampf gegen ein Nazgûl im Westen von Gondor. Aufgenommen in Herr der Ringe Online."> | |
<iframe width="530" height="298" src="https://www.youtube.com/embed/KdI7EQsmlJs" frameborder="0" allowfullscreen></iframe> | |
</div> | |
<h1>Responsive Einbindung</h1> | |
<div class="video-block" title="Kampf gegen ein Nazgûl im Westen von Gondor. Aufgenommen in Herr der Ringe Online."> | |
<iframe width="530" height="298" src="https://www.youtube.com/embed/KdI7EQsmlJs" frameborder="0" allowfullscreen></iframe> | |
</div> |
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
RewriteEngine On | |
RewriteCond %{HTTPS} !=on | |
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] |
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 | |
function hide_categories_terms($terms, $post_id, $taxonomy) { | |
// Kategorienamen ausblenden (den Slug eintragen und durch Komata trennen) | |
$exclude = array('aktualisieren', 'rechtschreibung'); | |
if (!is_admin()) { | |
foreach($terms as $key => $term){ | |
if($term->taxonomy == "category"){ | |
if(in_array($term->slug, $exclude)) unset($terms[$key]); |
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 | |
// Anführungszeichen | |
function gerade_anfuehrungszeichen( $translations, $text, $context, $domain ) { | |
if ( 'opening curly single quote' == $context && '‘' == $text ) {$translations = ''';} | |
if ( 'closing curly single quote' == $context && '’' == $text ) {$translations = ''';} | |
if ( 'opening curly double quote' == $context && '“' == $text ) {$translations = '"';} | |
if ( 'closing curly double quote' == $context && '”' == $text ) {$translations = '"';} | |
return $translations; | |
} |