Skip to content

Instantly share code, notes, and snippets.

View seoagentur-hamburg's full-sized avatar

Andreas Hecht seoagentur-hamburg

View GitHub Profile
@seoagentur-hamburg
seoagentur-hamburg / gist:5426677
Created April 20, 2013 17:08
Der für die Darstellung des Feedback Buttons nötige HTML Code sieht übrigens so aus:
<a id="kontakt" href="http://deineseite.de/deinformular/" title="Bla, bla">Feedback></a>
@seoagentur-hamburg
seoagentur-hamburg / gist:5426679
Created April 20, 2013 17:09
Der nötige jQuery Code für den Aufruf des Formulars:
$(document).ready(function() {
$("#kontakt").fancybox({
'width' : 660,
'height' : 600,
'transitionIn' : 'none',
'transitionOut' : 'none',
'overlayShow' : false,
'type' : 'iframe'
});
@seoagentur-hamburg
seoagentur-hamburg / gist:5426683
Created April 20, 2013 17:10
Abschließende Arbeiten 1
<link rel="stylesheet" type="text/css" href="http://deineseite.de/jquery.fancybox-1.3.0.css" media="screen" />
@seoagentur-hamburg
seoagentur-hamburg / gist:5426695
Created April 20, 2013 17:11
Abschließende Arbeiten 2
<script type="text/javascript" src="http://code.jquery.com/jquery-1.4.1.min.js"></script>
<script type="text/javascript" src="http://deineseite.de/jquery.fancybox-1.3.0.pack.js"></script>
@seoagentur-hamburg
seoagentur-hamburg / gist:5584899
Created May 15, 2013 15:37
.htaccess Schnipsel für die Komprimierung einer Webseite
# Deflate Compression by FileType
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
@seoagentur-hamburg
seoagentur-hamburg / gist:5584929
Created May 15, 2013 15:40
.htaccess Schnipsel der den Browser Cache auf einen Monat setzt.
# turns cache on for 1 month
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType text/css "access plus 1 month"
ExpiresByType text/javascript "access plus 1 month"
ExpiresByType text/html "access plus 1 month"
ExpiresByType application/javascript "access plus 1 month"
ExpiresByType application/x-javascript "access plus 1 month"
ExpiresByType application/xhtml-xml "access plus 600 seconds"
ExpiresByType image/gif "access plus 1 month"
@seoagentur-hamburg
seoagentur-hamburg / gist:6256828
Last active December 21, 2015 05:28
Hinzufügen von Google-Analytics Code zum WordPress "wp-footer"
<?php
/**
*
* Hinzufügen von Google-Analytics Code zum Footer
*
*/
function ah_analytics_code() {
?>
@seoagentur-hamburg
seoagentur-hamburg / gist:6257112
Last active April 15, 2019 15:14
Das Toolbox Modul für das Hinzufügen vom Google-Analytics Code zum WordPress Theme
<?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') ) {
@seoagentur-hamburg
seoagentur-hamburg / gist:7136266
Last active May 3, 2017 11:55
Verfrachtet alles JavaScript in den Footer von WordPress.
<?php
function evolution_clean_head() {
remove_action('wp_head', 'wp_print_scripts');
remove_action('wp_head', 'wp_print_head_scripts', 9);
remove_action('wp_head', 'wp_enqueue_scripts', 1);
}
add_action( 'wp_enqueue_scripts', 'evolution_clean_head' );
@seoagentur-hamburg
seoagentur-hamburg / gist:7136323
Created October 24, 2013 12:29
Toolbox-Modul um alles JavaScript in den Footer von WordPress einzubinden.
<?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') ) {