This file contains hidden or 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
# Check your website headers here: https://www.serpworx.com/check-security-headers/ or https://gf.dev/ | |
# This configuration works for WP, WC on LiteSpeed server. Be careful. Test site after installing. All lines are explained are in serpworx.com tester. | |
# Check for WP https://kulturbanause.de/blog/http-security-header/ | |
# and https://wp-helpers.com/2021/03/01/a-short-library-to-manage-security-http-headers-in-wp/ | |
# https://servebolt.com/help/article/how-to-add-security-headers-to-your-site/ | |
# Test with these: https://securityheaders.com/ | |
# https://webbkoll.dataskydd.net/de | |
# https://observatory.mozilla.org/ | |
# https://csp-evaluator.withgoogle.com/ | |
# Monitor: https://report-uri.com/ |
This file contains hidden or 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 gallery_ids_in_string($post_id, $att_id, $filepath, $is_keep_existing_images = '') | |
{ | |
// The custom field used by gallery. | |
$key = 'energieausweis'; | |
// The separator to use between each ID. | |
$separator = explode(PHP_EOL); | |
// Retrieve the current values in the gallery field. |
This file contains hidden or 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
#301 Redirects for .htaccess | |
#Redirect a single page: | |
Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
#Redirect an entire site: | |
Redirect 301 / http://www.domain.com/ | |
#Redirect an entire site to a sub folder | |
Redirect 301 / http://www.domain.com/subfolder/ |
This file contains hidden or 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
https://gtmetrix.com/ | |
https://gtmetrix.com/blog/how-to-read-a-waterfall-chart-for-beginners/ | |
https://www.webpagetest.org/ | |
https://wordpress.org/plugins/query-monitor/ | |
https://github.com/crstauf/query-monitor-extend | |
https://newrelic.com/products/application-monitoring | |
https://help.nexcess.net/74095-wordpress/configure-new-relic-monitoring | |
https://wordpress.org/plugins/wp-newrelic/ |
This file contains hidden or 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
# ---------------------------------------------------------------------- | |
# | Komprimierung und Caching | | |
# ---------------------------------------------------------------------- | |
# Serve resources with far-future expires headers. | |
# | |
# (!) If you don't control versioning with filename-based | |
# cache busting, you should consider lowering the cache times | |
# to something like one week. | |
# |
This file contains hidden or 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
[pb_vidembed title="" caption="" url='[types field="youtube-link" class="youtube-video" raw="true"][/types]' type="yt" w="270" h="217"] |
This file contains hidden or 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 | |
// Remove logo code from Canvas | |
add_action('wp_head', 'remove_woo_logo'); | |
function remove_woo_logo() { | |
remove_action('woo_header_inside','woo_logo'); | |
} | |
/*-----------------------------------------------------------------------------------*/ |
This file contains hidden or 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( 'woo_nav_inside', 'woo_add_nav_search', 30 ); | |
if ( ! function_exists( 'woo_add_nav_search' ) ) { | |
function woo_add_nav_search () { ?> | |
<div class="fr"> | |
<?php get_search_form(); ?> | |
</div> |
NewerOlder