Skip to content

Instantly share code, notes, and snippets.

View girlie's full-sized avatar

Shelley Denise girlie

  • GirlieWorks, LLC
View GitHub Profile
@mattonomics
mattonomics / gist:3834940
Created October 4, 2012 16:58
MOST basic skin ever
<?php
/*
Name: The Name of Your Skin
Author: Your Name
Description: A succinct description of what you're doing in this skin, special features, etc.
Version: 1.0
Class: unique_class_name
*/
@mattonomics
mattonomics / skin-sample.php
Created October 9, 2012 21:38
Adding a skin specific box to the boxes queue
<?php
class example_skin_class extends thesis_skin {
// list of box classes you want to add to the queue
// do not give these strings for keys or everything will blow up
public $boxes_class_list = array(
'box_class_one',
'box_class_two',
'box_class_three',
'box_class_four',
@mattonomics
mattonomics / gist:3912424
Created October 18, 2012 15:04
Add CSS to Thesis via the CSS filter
<?php
// add css using the thesis_css filter
class your_skin_class extends thesis_skin {
function construct() {
add_filter('thesis_css', array($this, 'add_css'));
}
@deckerweb
deckerweb / multisite-functions.php
Last active February 12, 2016 21:57
For Genesis Child Themes in Multisite -- one child theme for lots of sub sites: Pull in site-specific functions & stylesheet files, if available.
<?php
/**
* General Usage:
* Set "child-theme-slug" to the main child theme slug. Set "id" to actual Blog/ Site ID.
* Current: For Multisite installs that were made with 3.5+
* a) Place functions files in wp-content/uploads/sites/{id}/{child-theme-slug}/functions-site-{id}.php
* b) Place stylesheet files in wp-content/uploads/sites/{id}/{child-theme-slug}/styles-site-{id}.php
*
* Backward compatibility for Multisite installs that were made prior 3.5
@luistinygod
luistinygod / gf-mailchimp-export-edit-entry.php
Created March 2, 2015 12:34
GravityView: Custom plugin to force updated entries to be exported with the GF MailChimp add-on
<?php
/*
Plugin Name: Gravity Forms MailChimp Custom Export
Plugin URI: http://gravityview.co/
Description: Custom plugin to force updated entries to be exported with the GF MailChimp add-on
Author: Katz Web Services, Inc.
Version: 1.1.0
Author URI: http://www.katzwebservices.com
Copyright 2014 Katz Web Services, Inc. (email: info@katzwebservices.com)
jQuery(document).ready(function($) {
var $filter = $('.nav-primary');
var $filterSpacer = $('<div />', {
"class": "filter-drop-spacer",
"height": $filter.outerHeight()
});
if ($filter.size())
{
/* Sticky Primary nav */
.nav-primary.fix {
position: fixed;
top: 0;
left: 0;
z-index: 1000;
width: 100%;
max-width: 100%;
overflow: visible;
if ( !class_exists('JMO_Custom_Nav')) {
class JMO_Custom_Nav {
public function add_nav_menu_meta_boxes() {
add_meta_box(
'wl_login_nav_link',
__('WishList Login'),
array( $this, 'nav_menu_link'),
'nav-menus',
'side',
'low'
@malfario
malfario / Monokai-Bright.tmTheme
Created June 22, 2011 22:05
Monokai Bright Textmate Theme
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>Monokai</string>
<key>settings</key>
<array>
<dict>
<key>settings</key>
@carasmo
carasmo / for-functions.php
Last active July 2, 2016 19:43
Custom genesis_sitemap_output using the previously created custom get_posts() function to exclude posts or show only a specific category.
<?php
// don't include
/** ====================================================================================
* SITE MAP : archive page filter for genesis_sitemap_output();
* using christina_get_posts_for_sitemap();
==================================================================================== **/
function christina_sitemap($sitemap_post_list) {