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 / row-distribution.js
Created August 27, 2013 17:23
jQuery Plugin for generating fluid rows
(function( $ ) {
// Plugin definition.
$.fn.rowDistribution = function( options ) {
var defaults = {
countInRow : 4,
rowClass : 'distributed-row',
rowTag: 'div'
};
@dominicvogl
dominicvogl / .gitignore
Created July 29, 2013 13:11
All the things Git should ignore
# Numerous always-ignore extensions
*.diff
*.err
*.orig
*.log
*.rej
*.swo
*.swp
*.vi
*~
@dominicvogl
dominicvogl / change-image-defaults.txt
Created July 15, 2013 07:51
Dateiformat für Screenshots unter MacOSX ändern.
Terminal öffnen und dann folgende Eingabe machen:
`defaults write com.apple.screencapture type jpg`
Ausserdem sind folgende Formate möglich:
.jpg, .gif, .pdf, .png, .tiff, .pict, .bmp
@dominicvogl
dominicvogl / scrollToHash.js
Last active December 18, 2015 17:59
Smoth scroll to hash position, offset editable
$(document).ready(function(){
// Scrollto bei Hashtag
var headerHeight = $('#header-wrap').height();
hashname = window.location.hash.replace('#', '');
elem = $('#' + hashname);
if(hashname.length > 1) {
if(hashname == 'top') {
@dominicvogl
dominicvogl / postColors.php
Created June 18, 2013 19:05
Artikel im Wordpress Backend hervorheben
<?php
add_action('admin_footer','posts_status_color');
function posts_status_color(){
?>
<style>
.status-draft{
background: #FCE3F2 !important;
}
.status-pending{
<?php add_theme_support( 'post-thumbnails' ); ?>
@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/
*/
$(function() {
$('.mainWrapper').css("display", "none");
$('.mainWrapper').hide().fadeIn();
})
<div class="postbox">
<img src="http://placehold.it/500x400/" width="500" height="400" alt="Placehold.it" />
</div> <!-- /.postbox -->
@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