Skip to content

Instantly share code, notes, and snippets.

Andreas Hecht HechtMediaArts

Block or report user

Report or block HechtMediaArts

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@HechtMediaArts
HechtMediaArts / Sharebar.php
Created Jun 13, 2019
Statische Share Buttons, die nur die URL und den Titel des Beitrags übermitteln.
View Sharebar.php
<?php
if ( ! function_exists( 'ah_static_share_aside' ) ) :
/**
* Statische Share-Buttons als floating Social Bar an der linken Seite - Facebook, Twitter, Pinterest, Xing und LinkedIn
*
*/
function ah_static_share_aside() {
global $post;
@HechtMediaArts
HechtMediaArts / twenty-seventeen-editor-style.css
Created Jun 19, 2018
Das Editor-Style.css vom Twenty Seventeen Theme
View twenty-seventeen-editor-style.css
/*
Theme Name: Twenty Seventeen
Description: Used to style the TinyMCE editor.
*/
/**
* Table of Contents:
*
* 1.0 - Body
@HechtMediaArts
HechtMediaArts / follow.html
Created May 10, 2018
Static Follow me Buttons
View follow.html
<div class="social-buttons">
<ul>
<li class="social-facebook"><a href="https://www.facebook.com/wphecht/" target="_blank" title="Folge mir auf Facebook" rel="nofollow"><i class="icon-facebook"></i></a></li>
<li class="social-twitter"><a href="https://twitter.com/andreashecht_hh" target="_blank" title="Folge mir auf Twitter" rel="nofollow"><i class="icon-twitter"></i></a></li>
<li class="social-linkedin"><a href="https://www.linkedin.com/in/andreas-hecht-492b9a54" target="_blank" title="Folge mir auf LinkedIn" rel="nofollow"><i class="icon-linkedin"></i></a></li>
<li class="social-github"><a href="https://github.com/hechtmediaarts" target="_blank" title="Folge mir auf Github" rel="nofollow"><i class="icon-github"></i></a></li>
<li class="social-rss"><a href="https://andreas-hecht.com/feed/" target="_blank" title="Abonniere meinen RSS-feed"><i class="icon-rss"></i></a></li>
</ul>
@HechtMediaArts
HechtMediaArts / sharebar.php
Created May 10, 2018
Sticky Sharebar with static links
View sharebar.php
<?php
if ( ! function_exists( 'ah_sticky_sharebar' ) ) :
/**
* Statische Share-Buttons für die einzelnen Artikel - Facebook, Twitter, Google + und Xing.
*
* @uses Hook "evolution_after_thumbnail()"
*/
function ah_sticky_sharebar() {
@HechtMediaArts
HechtMediaArts / .htaccess
Last active Sep 3, 2019
6G-Firewall - Version 2019
View .htaccess
# ----------------------------------------------------------------------
# | 6g Firewall for Security - Do not change this part @Update 2019
# ----------------------------------------------------------------------
# 6G FIREWALL/BLACKLIST - Version 2019
# @ https://perishablepress.com/6g/
# 6G:[QUERY STRINGS]
<IfModule mod_rewrite.c>
RewriteEngine On
@HechtMediaArts
HechtMediaArts / 410-Gone
Created Jan 14, 2018
Beispiel eines 410-Gone Headers für die .htaccess.
View 410-Gone
ErrorDocument 410 /error/410.php
Redirect Gone /embed-code/index/find?placementVersionId=2287238314152891321572872
@HechtMediaArts
HechtMediaArts / .htaccess-redirect
Created Jan 14, 2018
Beispiel einer 301-Weiterleitung von einer alten auf eine neue Artikel-URL
View .htaccess-redirect
RewriteEngine On
Redirect 301 /dein-alter-artikel/ https://www.deinewebsite.de/dein-neuer-artikel/
@HechtMediaArts
HechtMediaArts / sanitization.php
Created Jul 20, 2017
Sanitization Callbacks for the WP Customizer
View sanitization.php
<?php
/**
* Customizer: Sanitization Callbacks
*
* This file demonstrates how to define sanitization callback functions for various data types.
*
* @package code-examples
* @copyright Copyright (c) 2015, WordPress Theme Review Team
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU General Public License, v2 (or newer)
*/
View clean-head.php
<?php
// Ab hier kopieren
/**
* Befreit den Header von unnötigen Einträgen
*/
add_action('init', 'ah_remheadlink');
function ah_remheadlink()
{
remove_action('wp_head', 'rsd_link');
@HechtMediaArts
HechtMediaArts / kill-emojis.php
Created Jun 25, 2017
Die Emojis ausschalten
View kill-emojis.php
<?php
// Ab hier kopieren
//emoji aus dem header entfernen
function ah_disable_emoji_dequeue_script() {
wp_dequeue_script( 'emoji' );
}
add_action( 'wp_print_scripts', 'ah_disable_emoji_dequeue_script', 100 );
remove_action( 'wp_head', 'print_emoji_detection_script', 7 );
remove_action( 'wp_print_styles', 'print_emoji_styles' );
You can’t perform that action at this time.