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 | |
/** | |
* Disable responsive image support | |
*/ | |
// Clean the up the image from wp_get_attachment_image() | |
add_filter( 'wp_get_attachment_image_attributes', function( $attr ) | |
{ | |
if( isset( $attr['sizes'] ) ) | |
unset( $attr['sizes'] ); |
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 dp_dequeue_unused_styles() { | |
wp_dequeue_style( "mashsb-styles" ); | |
wp_dequeue_style( "lashare-styles" ); | |
wp_dequeue_style( "mashnet-styles" ); | |
wp_dequeue_style( "banana_content" ); | |
wp_dequeue_script( 'wp-mediaelement' ); | |
wp_dequeue_script( 'mediaelement-and-player.min' ); | |
} |
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 | |
// Ab hier kopieren | |
// Ersetzt den WordPress-Feed mit der Feedburner Adresse | |
function drweb_custom_rss_feed( $output, $feed ) { | |
if ( strpos( $output, 'comments' ) ) | |
return $output; | |
/* Link mit deinem persönlichen Feed-Link ersetzen */ | |
return esc_url( 'http://feeds.feedburner.com/drwebmagazin' ); } |
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 | |
/** | |
* Template Name: Sitemap Template | |
*/ | |
get_header(); ?> | |
<section id="primary" class="content-area"> | |
<main id="main" class="site-main" role="main"> | |
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
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 | |
/* | |
Module Name: Breadcrumbs | |
Description: Erstellt eine Brotkrumen-Navigation [Frontend] | |
Author: Andreas Hecht | |
Author URI: http://hechtmediaarts.com | |
*/ | |
/* Sicherheitsabfrage */ | |
if ( !class_exists('Toolbox') ) { |
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 | |
/* | |
Module Name: JavaScript in Footer | |
Description: Verfrachtet alles JavaScript in den Footer von WordPress [Frontend] | |
Author: Andreas Hecht | |
Author URI: http://hechtmediaarts.com/ | |
*/ | |
/* Sicherheitsabfrage */ | |
if ( !class_exists('Toolbox') ) { |
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 | |
/* | |
Module Name: Google Analytics | |
Description: Hinzufügen vom Google-Analytics Code zum WordPress Theme. [Frontend] | |
Author: Andreas Hecht | |
Author URI: http://hechtmediaarts.com | |
*/ | |
/* Sicherheitsabfrage */ | |
if ( !class_exists('Toolbox') ) { |
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 ah_hide_plugin() { | |
global $wp_list_table; | |
$hidearr = array('plugin-directory/plugin-file.php'); // plugin-directory/plugin-file.php anpassen | |
$myplugins = $wp_list_table->items; | |
foreach ($myplugins as $key => $val) { | |
if (in_array($key,$hidearr)) { | |
unset($wp_list_table->items[$key]); | |
} |
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 | |
/* ============================================================================= | |
Google-Werbung nach dem ersten Absatz einfuegen | |
============================================================================= */ | |
add_filter( 'the_content', 'prefix_insert_post_ads' ); | |
function prefix_insert_post_ads( $content ) { | |