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
<IfModule mod_expires.c> | |
ExpiresActive On | |
FileETag None | |
Header unset ETag | |
ExpiresDefault "access plus 1 month" | |
ExpiresByType text/css "access plus 1 year" | |
ExpiresByType application/atom+xml "access plus 1 hour" | |
ExpiresByType application/rdf+xml "access plus 1 hour" | |
ExpiresByType application/rss+xml "access plus 1 hour" | |
ExpiresByType image/vnd.microsoft.icon "access plus 1 year" |
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 | |
header('HTTP/1.1 503 Service Temporarily Unavailable'); | |
header('Status: 503 Service Temporarily Unavailable'); | |
header('Retry-After: 3600'); | |
?><!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Website wird gewartet</title> | |
</head> |
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( 'wp_enqueue_scripts', 'twentynineteen_child_enqueue_styles' ); | |
function twentynineteen_child_enqueue_styles() { | |
$parent_style = 'twentynineteen-style'; | |
wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' ); | |
wp_enqueue_style( 'twentynineteen-child-style', | |
get_stylesheet_directory_uri() . '/style.css', | |
array( $parent_style ), | |
filemtime(get_stylesheet_directory() . '/style.css') | |
); |
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
/* CSS Styles ausserhalb der folgenden speziellen Media Querys sind fuer grosse Monitore, breiter als 1199px, vorgesehen */ | |
@media all and (max-width: 1199px) { | |
/* CSS Styles fuer grosse Displays */ | |
} | |
@media all and (max-width: 991px) { | |
/* CSS Styles fuer Tablets hochkant */ | |
} | |
@media all and (max-width: 768px) { | |
/* CSS Styles fuer Smartphones, horizontal */ | |
} |
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 | |
/** | |
* @package WH_Event_Widget | |
* @version 1.0.0 | |
*/ | |
/* | |
Plugin Name: WH Event Widget | |
Plugin URI: https://wordpress-handbuch.com | |
Description: Anzeige aktueller Veranstaltungen | |
Author: Johannes Mustermann |
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 wh_remove_comment_links( $content ) { | |
global $allowedtags; | |
$tags = $allowedtags; | |
unset( $tags['a'] ); | |
$content = addslashes( wp_kses( stripslashes( $content ), $tags ) ); | |
return $content; | |
} | |
add_filter( 'pre_comment_content', 'wh_remove_comment_links' ); |
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 wh_emove_url_from_comment_form( $fields ) { | |
unset( $fields['url'] ); | |
return $fields; | |
} | |
add_filter( 'comment_form_default_fields', 'wh_remove_url_from_comment_form' ); |
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 wh_wordpress_backend_footer () { | |
echo 'WordPress sauber installiert und konfiguriert dank des umfassenden und sagenhaften <a href="https://wordpress-handbuch.com" target="_blank">WordPress-Handbuchs</a></p>'; | |
} | |
add_filter('admin_footer_text', 'wh_wordpress_backend_footer'); |
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 wh_wordpress_backend_custom_logo() { | |
echo ' | |
<style type="text/css"> | |
#wpadminbar #wp-admin-bar-wp-logo > .ab-item .ab-icon:before { | |
background-image: url(' . get_bloginfo( 'stylesheet_directory' ) . '/images/custom-logo.png) !important; | |
background-size: 20px 20px; | |
background-position: 0 0; | |
color:rgba(0, 0, 0, 0); | |
} | |
#wpadminbar #wp-admin-bar-wp-logo.hover > .ab-item .ab-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
function wh_add_image_sizes_to_backend( $existingsizes ) { | |
$addsizes = array( | |
"wh-homepage-teaser" => 'WH Homepage Teaser', | |
"wh-landingpage-stage" => 'WH Landingpage Stage', | |
"wh-detailpage-feature" => 'WH Detailpage Feature' | |
); | |
$newsizes = array_merge( $existingsizes, $addsizes ); | |
return $newsizes; | |
} | |
add_filter( 'image_size_names_choose', 'wh_add_image_sizes_to_backend' ); |