Skip to content

Instantly share code, notes, and snippets.

View seoagentur-hamburg's full-sized avatar

Andreas Hecht seoagentur-hamburg

View GitHub Profile
<?php
/**
* Statische Share-Buttons für die einzelnen Artikel - Facebook, Twitter, Google + und Xing.
*
* @uses Hook "evolution_after_thumbnail()"
*/
function ah_sticky_sharebar() {
global $post;
@seoagentur-hamburg
seoagentur-hamburg / Sharebar.php
Created June 13, 2019 17:15
Statische Share Buttons, die nur die URL und den Titel des Beitrags übermitteln.
<?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;
@seoagentur-hamburg
seoagentur-hamburg / twenty-seventeen-editor-style.css
Created June 19, 2018 13:17
Das Editor-Style.css vom Twenty Seventeen Theme
/*
Theme Name: Twenty Seventeen
Description: Used to style the TinyMCE editor.
*/
/**
* Table of Contents:
*
* 1.0 - Body
@seoagentur-hamburg
seoagentur-hamburg / follow.html
Created May 10, 2018 18:02
Static Follow me Buttons
<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>
@seoagentur-hamburg
seoagentur-hamburg / sharebar.php
Created May 10, 2018 18:00
Sticky Sharebar with static links
<?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() {
@seoagentur-hamburg
seoagentur-hamburg / .htaccess
Last active April 27, 2023 13:12
6G-Firewall - Version 2019
# ----------------------------------------------------------------------
# | 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
@seoagentur-hamburg
seoagentur-hamburg / 410-Gone
Created January 14, 2018 16:28
Beispiel eines 410-Gone Headers für die .htaccess.
ErrorDocument 410 /error/410.php
Redirect Gone /embed-code/index/find?placementVersionId=2287238314152891321572872
@seoagentur-hamburg
seoagentur-hamburg / .htaccess-redirect
Created January 14, 2018 16:24
Beispiel einer 301-Weiterleitung von einer alten auf eine neue Artikel-URL
RewriteEngine On
Redirect 301 /dein-alter-artikel/ https://www.deinewebsite.de/dein-neuer-artikel/
@seoagentur-hamburg
seoagentur-hamburg / sanitization.php
Created July 20, 2017 18:06
Sanitization Callbacks for the WP Customizer
<?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)
*/
@seoagentur-hamburg
seoagentur-hamburg / clean-head.php
Created June 25, 2017 14:44
Header bereinigen
<?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');