Skip to content

Instantly share code, notes, and snippets.

Avatar

Andreas Hecht seoagentur-hamburg

View GitHub Profile
View new-static-sharebar.php
<?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 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;
@seoagentur-hamburg
seoagentur-hamburg / 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
@seoagentur-hamburg
seoagentur-hamburg / 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>
@seoagentur-hamburg
seoagentur-hamburg / 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() {
@seoagentur-hamburg
seoagentur-hamburg / .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
@seoagentur-hamburg
seoagentur-hamburg / 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
@seoagentur-hamburg
seoagentur-hamburg / .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/
@seoagentur-hamburg
seoagentur-hamburg / 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');
You can’t perform that action at this time.