I hereby claim:
- I am schilke on github.
- I am schilke (https://keybase.io/schilke) on keybase.
- I have a public key whose fingerprint is 4A08 15E2 CFC2 B202 DFA9 D76E FDD0 0043 86BA 2482
To claim this, I am signing this object:
# To make sure | |
mod_gzip_on Yes | |
# Optional | |
AddDefaultCharset UTF-8 | |
# BEGIN ADD MIME TYPES | |
<IfModule mod_mime.c> | |
AddType text/css .css | |
AddType text/x-component .htc |
<?php | |
/**************************************************************************************************************** | |
* ATTENTION! Don't copy the above line if you're going to use this in your functions.php - just the code below * | |
****************************************************************************************************************/ | |
function jsc_remove_modified_date(){ | |
if( is_page() ){ |
<?php | |
/**************************************************************************************************************** | |
* ATTENTION! Don't copy the above line if you're going to use this in your functions.php - just the code below * | |
****************************************************************************************************************/ | |
function fb_opengraph() { | |
global $post; | |
if(is_single()) { // article or post - not front page or archive |
/* Add responsive container to embeds */ | |
function jsc_embed_html( $html ) { | |
return '<div class="video-container">' . $html . '</div>'; | |
} | |
add_filter( 'embed_oembed_html', 'jsc_embed_html', 10, 3 ); | |
add_filter( 'video_embed_html', 'jsc_embed_html' ); |
<?php | |
// don't copy above line when copying and pasting into your functions.php | |
// Remove WP version number from js and css files. | |
// more exact function, removes also "&" | |
function remove_cssjs_ver( $src ) { | |
if( strpos( $src, '?ver=' ) || strpos( $src, '&ver=' ) ) | |
$src = remove_query_arg( 'ver', $src ); |
# Redirect all requests from olddomain.com to www.newdomain.com | |
# tell the server to activate mod_rewrite | |
RewriteEngine On | |
# What's the redirect base (i.e. root or subdirectory) | |
RewriteBase / | |
# Either check if the request goes to the old domain | |
RewriteCond %{HTTP_HOST} ^(www\.)?olddomain\.com$ [NC] |
<?php | |
//* Do NOT include the opening php tag | |
// Discussion on LinkedIn: http://j.mp/1y5Mrgi | |
//* Modify breadcrumb arguments. | |
add_filter( 'genesis_breadcrumb_args', 'jsc_breadcrumb_args' ); | |
function jsc_breadcrumb_args( $args ) { | |
$args['sep'] = ' / '; | |
$args['prefix'] = '</ul><div class="breadcrumb">'; // the </ul> closes the navigation list |
<?php | |
// This is the cleaner code per request of a thread in the LinkedIn group "WordPress" | |
// ... | |
// register and enqueue loadCSS | |
function load_scripts_and_styles() { | |
// register loadCSS | |
wp_register_script( 'load-css-async', get_stylesheet_directory_uri() . '/path/to/js/loadCSS.js', array(), '', false ); |
I hereby claim:
To claim this, I am signing this object: