Skip to content

Instantly share code, notes, and snippets.

View norewp's full-sized avatar

Zulfikar Nore norewp

View GitHub Profile
@norewp
norewp / after-setup-theme.php
Created September 13, 2017 07:36
Enqueue child theme style immediately after parent
<?php
function themename_scripts() {
global $themename_version; // This should be defined early on
$parent_style = 'parent-style'; // This is 'parent-style' for your theme.
$child_style = 'child-style';
//wp_enqueue_style( 'actions-style', get_template_directory_uri() . '/style.css', '', $themename_version );
if ( wp_get_theme()->get('Name') != 'ThemeName' ) {
wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css', array(), $themename_version );
@norewp
norewp / Contract Killer 3.md
Created August 30, 2017 01:01 — forked from malarkey/Contract Killer 3.md
The latest version of my ‘killer contract’ for web designers and developers

Contract Killer

The popular open-source contract for web professionals by Stuff & Nonsense

  • Originally published: 23rd December 2008
  • Revised date: March 15th 2016
  • Original post