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 twentytwelve_child_scripts() { | |
wp_deregister_style( 'twentytwelve-style' ); | |
wp_register_style( 'twentytwelve-style', get_template_directory_uri() . '/style.css' ); | |
wp_enqueue_style( 'twentytwelve-child-style', get_stylesheet_uri(), array( 'twentytwelve-style' ) ); | |
} | |
add_action( 'wp_enqueue_scripts', 'twentytwelve_child_scripts', 11 ); |
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 tl_umlaut_repair( $content ) { | |
/* | |
* Why? | |
* For everyone getting this warning from W3C: "Text run is not in Unicode Normalization Form C." | |
* http://www.w3.org/International/docs/charmod-norm/#choice-of-normalization-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
<?php | |
add_filter('comment_form_default_fields', 'url_filtered'); | |
function url_filtered($fields) | |
{ | |
if(isset($fields['url'])) | |
unset($fields['url']); | |
return $fields; | |
} |
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_before_admin_bar_render', 'add_language_to_blog_name'); | |
function add_language_to_blog_name( $wp_admin_bar ) { | |
global $wp_admin_bar; | |
$wp_admin_bar->add_menu( array( | |
'id' => 'site-name', | |
'title' => get_bloginfo( 'name' ) . ' | ' . get_bloginfo( 'language' ), |
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 | |
/* | |
Plugin Name: Gender all the things | |
Description: Gender all the things | |
Version: 1.0 | |
Author: Torsten Landsiedel | |
Author URI: http://torstenlandsiedel.de | |
*/ |
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 | |
/** | |
* Plugin Name: Threaded Comment Feed Enhancer | |
* Plugin URI: http://torstenlandsiedel.de | |
* Text Domain: threaded-comment-feed-enhancer | |
* Domain Path: /languages | |
* Description: Enhances the threaded comments feed | |
* Version: 1.2.0 | |
* Author: Torstenlandsiedel | |
* Author URI: http://torstenlandsiedel.de |
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 | |
/* Change jump link to post beginning */ | |
/* http://codex.wordpress.org/Customizing_the_Read_More */ | |
function change_more_jump_link($link) { | |
$link = str_replace('#more-', '#post-', $link); | |
return $link; | |
} | |
add_filter('the_content_more_link', 'change_more_jump_link'); |
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 md_filter_curly_double_quotes( $translations, $text, $context, $domain ) { | |
if ( 'opening curly double quote' == $context && '“' == $text ) { | |
$translations = '„'; | |
} else if ( 'closing curly double quote' == $context && '”' == $text ) { | |
$translations = '“'; | |
} | |
return $translations; |
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 | |
class VersionCheck implements themecheck { | |
protected $error = array(); | |
function tc_templatepath( $file ) { | |
$filename = ( preg_match( '/themes\/([a-z0-9-]*\/.*)/', $file, $out ) ) ? $out[1] : basename( $file ); | |
return $filename; | |
} |
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 mobile bodyclass | |
function add_mobile_bodyclass( $classes ) { | |
if ( wp_is_mobile() ) { | |
// add 'class-name' to the $classes array if is mobile user agent | |
$classes[] = 'mobile'; | |
} |
OlderNewer