Skip to content

Instantly share code, notes, and snippets.

View girlie's full-sized avatar

Shelley Denise girlie

  • GirlieWorks, LLC
View GitHub Profile
/* Sticky Primary nav */
.nav-primary.fix {
position: fixed;
top: 0;
left: 0;
z-index: 1000;
width: 100%;
max-width: 100%;
overflow: visible;
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 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)
@joshuadavidnelson
joshuadavidnelson / default-genesis-theme-settings.php
Last active December 16, 2020 01:47
Set default genesis theme settings
<?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 April 23, 2019 05:54
Creates a mobile responsive menu in a Genesis child theme with support for collapsible sub menus.
/* Responsive Navigation
---------------------------------------------------------------------------------------------------- */
/* Standard Navigation
--------------------------------------------- */
nav {
clear: both;
}
@cdils
cdils / change-style-load-order.php
Last active February 7, 2022 15:35
Change order of where Genesis child theme stylesheet is loaded on theme initialization.
<?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 October 22, 2023 05:55
Help file when registering post types.
<?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
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 February 24, 2019 17:13 — forked from billerickson/template-gallery.php
Custom Genesis Category Template with Pagination
<?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 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