Skip to content

Instantly share code, notes, and snippets.

@Zodiac1978
Zodiac1978 / projekt26-2020.md
Last active Feb 14, 2021
Teilnehmerinnen und Teilnehmer sowie alle Beiträge zur #Projekt26 Challenge im Jahr 2020
View projekt26-2020.md

Am 28.12. habe ich mit einem Tweet zur #Projekt26 Challenge herausgefordert. Alle zwei Wochen bloggen und kommentieren, über Wordpress oder Verwandtes, in Deutsch oder Englisch. Alle Details dazu in diesem Artikel: https://torstenlandsiedel.de/2019/12/28/projekt26-jetzt-erst-recht/

Für 2021 geht es hier weiter: https://gist.github.com/Zodiac1978/2f13339f8431d1e5edf3365c39bdb12d

KW 1+2

@kevinwhoffman
kevinwhoffman / resources-web-developers-designers.md
Last active Oct 31, 2020
Resources for Web Developers and Designers
View resources-web-developers-designers.md

Resources for Web Developers and Designers

This is an incomplete list of resources including courses and individuals who publish content that has helped me grow as a web developer and designer. Many of these resources are WordPress-specific as that is my current area of specialization. This list will grow over time. If you've got something to add, send me a link @kevinwhoffman and I'll check it out!

Course Providers

@bueltge
bueltge / PortSwitch.php
Last active Mar 25, 2021
Port switch to get an workaround to use WordPress Multisite also without the default port 80.
View PortSwitch.php
<?php # -*- coding: utf-8 -*-
declare( strict_types = 1 );
/**
* Plugin Name: Port Switch
* Plugin URI: https://gist.github.com/bueltge/51013ab809f5f0f5e305c70c2d393fff
* Description: Port switch to get an workaround to use WordPress Multisite also without the default port 80.
* Version: dev
* Author: Frank Bültge
* Author URI: https://bueltge.de
* License: MIT
@walterebert
walterebert / elmastudio-unbundle.sh
Last active May 9, 2019
Unzip & clean Elmastudio WordPress theme bundle
View elmastudio-unbundle.sh
#!/bin/bash
# Unzip theme bundle
unzip elmastudio-themebundle.zip
# Delete MacOS directory
rm -fr __MACOSX
# Unzip theme files
cd elmastudio-themebundle
@tripflex
tripflex / functions.php
Last active Jun 24, 2021
WordPress Remove Filter (remove_filter converted to remove_class_filter) to remove Filter/Action without Class Object access. Works with WordPress 1.2+ (4.7+ support added 9-19-2016)
View functions.php
<?php
/**
* Make sure the function does not exist before defining it
*/
if( ! function_exists( 'remove_class_filter' ) ){
/**
* Remove Class Filter Without Access to Class Object
*
* In order to use the core WordPress remove_filter() on a filter added with the callback
@glueckpress
glueckpress / jquery.inline.anchor.navigation.js
Last active Apr 28, 2019
[JavaScript][jQuery] Inline Anchor Navigation: Adds a smooth scroll effect to URLs containing a hash (#). Excludes single hashes, #respond (WordPress comment forms), and orphaned hash characters at the end of a URL.
View jquery.inline.anchor.navigation.js
/**
* jQuery Inline Anchor Navigation
*
* Adds a smooth scroll effect to URLs containing a hash (#).
* Excludes single hashes, #respond (WordPress comment forms), and orphaned
* hash characters at the end of a URL.
*/
(function($) {
$('a[href*="#"]')
.not('a[href="#"]') // Excemption #1: dummy hrefs
@2ndkauboy
2ndkauboy / textdomain-de_DE.po
Last active Dec 12, 2018
This template can be used to create a po file for a new WordPress translation (in this example for the locale de_DE)
View textdomain-de_DE.po
msgid ""
msgstr ""
"Project-Id-Version: <PROJECT NAME>\n"
"POT-Creation-Date: 2015-04-02 16:42+0100\n"
"PO-Revision-Date: \n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: de_DE\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@derpixler
derpixler / post-count-bubble.php
Last active Oct 26, 2019
Add WordPress Nav-Menu Counter
View post-count-bubble.php
<?php
/*
Plugin Name: Add Postcount to Adminmenu
Plugin URI: https://gist.github.com/derpixler/6d73b30fee3dcaf6d119
Description: This Plugin adds a count bubble on Post menu
Version: 1.0
Author: René Reimann
Author URI: http://www.rene-reimann.de
License:
@markjaquith
markjaquith / nginx.conf
Last active Sep 22, 2020
My WordPress Nginx setup
View nginx.conf
upstream phpfpm {
server unix:/var/run/php5-fpm.sock;
}
upstream hhvm {
server unix:/var/run/hhvm/hhvm.sock;
}
# SSL
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;