Skip to content

Instantly share code, notes, and snippets.

Avatar

Shelley Denise girlie

  • GirlieWorks, LLC
View GitHub Profile
@mattonomics
mattonomics / gist:3834940
Created Oct 4, 2012
MOST basic skin ever
View gist:3834940
<?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 Oct 9, 2012
Adding a skin specific box to the boxes queue
View skin-sample.php
<?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 Oct 18, 2012
Add CSS to Thesis via the CSS filter
View gist:3912424
<?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 Feb 12, 2016
For Genesis Child Themes in Multisite -- one child theme for lots of sub sites: Pull in site-specific functions & stylesheet files, if available.
View multisite-functions.php
<?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 Mar 2, 2015
GravityView: Custom plugin to force updated entries to be exported with the GF MailChimp add-on
View gf-mailchimp-export-edit-entry.php
<?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)
View sticky-nav.js
jQuery(document).ready(function($) {
var $filter = $('.nav-primary');
var $filterSpacer = $('<div />', {
"class": "filter-drop-spacer",
"height": $filter.outerHeight()
});
if ($filter.size())
{
View primary-fixed.css
/* Sticky Primary nav */
.nav-primary.fix {
position: fixed;
top: 0;
left: 0;
z-index: 1000;
width: 100%;
max-width: 100%;
overflow: visible;
View gist:5221875
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 Jun 22, 2011
Monokai Bright Textmate Theme
View Monokai-Bright.tmTheme
<?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 Jul 2, 2016
Custom genesis_sitemap_output using the previously created custom get_posts() function to exclude posts or show only a specific category.
View for-functions.php
<?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) {
You can’t perform that action at this time.