Skip to content

Instantly share code, notes, and snippets.

Avatar

Shelley Denise girlie

  • GirlieWorks, LLC
View GitHub Profile
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 sticky-nav.js
jQuery(document).ready(function($) {
var $filter = $('.nav-primary');
var $filterSpacer = $('<div />', {
"class": "filter-drop-spacer",
"height": $filter.outerHeight()
});
if ($filter.size())
{
@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)
@joshuadavidnelson
joshuadavidnelson / default-genesis-theme-settings.php
Last active Jan 19, 2018
Set default genesis theme settings
View default-genesis-theme-settings.php
<?php
/**
* Set default Genesis Theme Options
*
* @author Joshua David Nelson, josh@joshuadnelson.com
*/
add_filter( 'genesis_theme_settings_defaults', 'jdn_theme_settings' );
function jdn_theme_settings( $defaults ) {
$defaults = array(
'update' => 1,
@ozzyrod
ozzyrod / responsive-menu-css.css
Last active Apr 23, 2019
Creates a mobile responsive menu in a Genesis child theme with support for collapsible sub menus.
View responsive-menu-css.css
/* Responsive Navigation
---------------------------------------------------------------------------------------------------- */
/* Standard Navigation
--------------------------------------------- */
nav {
clear: both;
}
@cdils
cdils / change-style-load-order.php
Last active Mar 20, 2020
Change order of where Genesis child theme stylesheet is loaded on theme initialization.
View change-style-load-order.php
<?php //Remove this line
/**
* Remove Genesis child theme style sheet
* @uses genesis_meta <genesis/lib/css/load-styles.php>
*/
remove_action( 'genesis_meta', 'genesis_load_stylesheet' );
/**
* Enqueue Genesis child theme style sheet at higher priority
@justintadlock
justintadlock / register-post-type.php
Last active Nov 12, 2020
Help file when registering post types.
View register-post-type.php
<?php
# Register custom post types on the 'init' hook.
add_action( 'init', 'my_register_post_types' );
/**
* Registers post types needed by the plugin.
*
* @since 1.0.0
* @access public
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'
@wpsmith
wpsmith / category.php
Last active Feb 24, 2019 — forked from billerickson/template-gallery.php
Custom Genesis Category Template with Pagination
View category.php
<?php
/**
* Custom Category Template
*
* @package my_child_theme
* @since 1.0.0
* @author Travis Smith <t@wpsmith.net>
* @copyright Copyright (c) 2013, Travis Smith
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
* @link https://gist.github.com/wpsmith/5062834
@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
You can’t perform that action at this time.