Skip to content

Instantly share code, notes, and snippets.

@patric-boehner
patric-boehner / ReadMe.md
Last active March 12, 2016 08:40
diglloydTools IntegrityChecker - Command Line

diglloydTools IntegrityChecker - Command Line

diglloydTools four commands depending on what tool i want to use:

  1. disktester
  2. mt
  3. ic
  4. dgl

ic is for Integrity Checker, the primary tool i use for managing the integrity of archived client work.

@patric-boehner
patric-boehner / ReadMe.md
Created March 20, 2016 00:56
Make forms fields disabled or readonly in Gravity Forms vs Ninja Forms

#Make forms fields disabled or readonly in Gravity Forms vs Ninja Forms

I've seen this in a couple of places so wanted to make a note of it for future use. Their is a plugin from Engage WP that does this a little more agnosticaly then other snippets i have seen that target gravity form class's and id's specificaly. This should work with any wordpress form plugin that allows you to add custom classes to individual form fields.

Simply enqueue this js and enjoy.

@patric-boehner
patric-boehner / custom-functions.php
Created June 19, 2016 00:16
Override the footer in Hello Genesis child theme.
<?php
//* Custom functions to modify child theme
//* Remove the original custom footer
remove_action( 'genesis_footer', 'hello_pro_custom_footer' );
//* Customize the entire footer
remove_action( 'genesis_footer', 'genesis_do_footer' );
add_action( 'genesis_footer', 'sp_custom_footer' );
@patric-boehner
patric-boehner / widgets.php
Created June 24, 2016 00:44
Conditional Widget Width - From Genesis Theme Maker Pro
<?php
/*
* A copy of the widget count and dynamic widget class for setting width from
* Genesis Framework child theme from Maker Pro
* http://demo.jtgrauke.com/maker/
*/
//* Setup widget counts
function maker_count_widgets( $id ) {
@patric-boehner
patric-boehner / functions.php
Created June 24, 2016 01:39
Genesis Farmework Force Layout
<?php
//* Do NOT include the opening php tag
//* Force content-sidebar layout
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_content_sidebar' );
//* Force sidebar-content layout
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_sidebar_content' );
@patric-boehner
patric-boehner / functions.php
Last active July 1, 2016 17:38
Genesis Modern Studio Pro Theme Menu Structure
<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.
//* Menus
//**********************
//* Rename Menus
add_theme_support( 'genesis-menus', array( 'primary' => __( 'Left Navigation Menu' ), 'secondary' => __( 'Right Navigation Menu' ) ) );
//* Modify Menu Structure
@patric-boehner
patric-boehner / fucntions.php
Last active July 2, 2016 22:46
Filter the menu to add search bar and widget area as line item in genesis
<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.
//* Filter the header menu to add search and social
https://www.petersenmediagroup.com/adding-simple-social-icons-search-form-genesis-menu/
add_filter( 'wp_nav_menu_items', 'pb_search_social_menu_extras', 10, 2 );
function pb_search_social_menu_extras( $menu, stdClass $args ){
//* Add the extras to the header-menu
@patric-boehner
patric-boehner / menu.php
Last active July 8, 2016 08:14
Add logo to beginning of menu
<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.
// Notes:
// Add logo via css background imgae.
// Refrance:
//* https://developer.wordpress.org/reference/functions/wp_nav_menu/
//* Filter menu "primary" to add logo structure
@patric-boehner
patric-boehner / menu.php
Last active July 12, 2016 08:11
Creating Header Menu "Utility Bar" Along With Widget Area in Genesis
<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.
// Note:
/*
* Register a new menu, then add a section by hooking into 'before_header' in genesis,
* and output the menu and widget area within that structure.
* Gives a little more flexibility over appending items to the end of the menu.
*/
@patric-boehner
patric-boehner / style.css
Last active July 11, 2016 07:38
A landing page template with no header, footer or entry title, and two side sections for genesis
/* A little base style for version two "template_application_sk_v2.php",
* with a simple media querie, to get you started.
* Adopting the default margins and padding of the sample child theme article.
*/
.application .right-application-sidebar,
.application .left-application-sidebar {
width: 25%;
float: left;
margin-bottom: 40px;