Skip to content

Instantly share code, notes, and snippets.

View dominicvogl's full-sized avatar
🏠
Working from home

Dominic Vogl dominicvogl

🏠
Working from home
View GitHub Profile
@dominicvogl
dominicvogl / analytics.html
Last active August 16, 2022 09:06
Google Analytics Snippet with Anonymize IP
<script type="text/javascript">
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-xxxxxx-x');
ga('set', 'anonymizeIp', true);
ga('send', 'pageview');
@dominicvogl
dominicvogl / flexslider_setup.js
Last active December 10, 2015 18:38
Basic Settings for Flexslider Settings with Control Slides
// Load Flexslider
$(window).load(function() {
$('.flexslider').flexslider({
animation: "fade",
controlNav: false,
slideDirection: "horizontal",
directionNav: false,
after: function(slider) {
var controlSlides = $('.flex-nav li');
<?php
// Content, Charset
header('Content-Type: text/html; charset=utf-8');
// PHP auch explizit auf UTF-8 setzen
mb_internal_encoding('UTF-8');
$db = array();
/**
* Fullscreenr - lightweight full screen background jquery plugin
* By Jan Schneiders
* www.nanotux.com
*
* Modifications by Chris Van Patten
* http://www.vanpattenmedia.com
* Version 1.5
**/
.logo {
width: 204px;
height: 100px;
background: url('/img/logo.png');
}
@media
(-o-min-device-pixel-ratio: 5/4),
(-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 120dpi) {
@dominicvogl
dominicvogl / wp_plugins.md
Last active January 23, 2022 17:04
Useful Wordpress plugin list

##Wordpress Plugins

What we have
  • Admin
  • Forms
  • Template
  • Performance
  • Security
  • SEO
<div class="postbox">
<img src="http://placehold.it/500x400/" width="500" height="400" alt="Placehold.it" />
</div> <!-- /.postbox -->
$(function() {
$('.mainWrapper').css("display", "none");
$('.mainWrapper').hide().fadeIn();
})
@dominicvogl
dominicvogl / breadcrumb.php
Last active February 4, 2016 09:59
Toolbox Snippet for generating a Breadcrumb in Wordpress
<?php
/*
Module Name: Breadcrumb Navigation
Module URI: https://plus.google.com/110569673423509816572/posts/eFtCpa2AH1L
Description: Adds a breadcrumb navigation to your blog. [Frontend]
Author: Jonas Hellwig
Author URI: http://blog.kulturbanause.de/
*/
<?php add_theme_support( 'post-thumbnails' ); ?>