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 | |
add_action( 'after_setup_theme', 'name_des_themes' ); | |
function name_des_themes() { | |
add_theme_support( 'wc-product-gallery-zoom' ); | |
add_theme_support( 'wc-product-gallery-lightbox' ); | |
add_theme_support( 'wc-product-gallery-slider' ); | |
} |
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
function kurzlink() { | |
echo "<link rel='alternate shortlink' href='" . wp_get_shortlink() . "' />"; | |
} | |
add_action('wp_head','kurzlink'); |
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
// Kurzlink in WP zurückholen | |
if ( function_exists( 'add_filter' ) ) { | |
add_filter( 'get_shortlink', function ( $shortlink ) { | |
return $shortlink; | |
} ); | |
} |
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 $unterzeile = get_post_meta($post->ID, 'unterzeile', true); | |
if ($unterzeile) { ?> | |
<div class="unterzeile"> | |
<?php echo $unterzeile; ?> | |
</div> | |
<?php } ?> |
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 | |
// Code für die Überschrift und die Metadaten | |
if(!empty($post->post_excerpt)) { | |
echo '<div class="auszug">'; | |
the_excerpt(); | |
echo '</div>'; | |
} | |
// Code für die Ausgabe des Haupttextes |
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
# mod_deflate aktivieren | |
<FilesMatch "\\.(js|css|html|htm|php|xml|svg)$"> | |
SetOutputFilter DEFLATE | |
</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 | |
// Jetpack-JS für Gravatar entfernen | |
function dequeue_devicepx() { | |
wp_dequeue_script( 'devicepx' ); | |
} | |
add_action( 'wp_enqueue_scripts', 'dequeue_devicepx', 20 ); |
NewerOlder