Skip to content

Instantly share code, notes, and snippets.

<?php
/**
* This file limits the content to a specified number of characters.
* It is from the Genesis framework
*
* @package Foundation
* @version Since 3.2.0
*/
/**
<?php
/**
* This file limits the content to a specified number of characters.
* It is from the Genesis framework
*
* @package Foundation
* @version Since 3.2.0
*/
/**
@bryanwillis
bryanwillis / metro-theme-widget-titles.php
Created January 9, 2016 02:27 — forked from bhwebworks/metro-theme-widget-titles.php
Metro Theme Widget Titles plugin
<?php
/**
* Plugin Name: Metro Theme Widget Titles
* Plugin URI: http://blackhillswebworks.com
* Description: Fixes a theme/plugin compatibility issue by removing the StudioPress Metro theme widget title filter and adding another filter that is compatible with plugins.
* Version: 0.1
* Author: John Sundberg
* Author URI: http://blackhillswebworks.com
* License: GPLv2 or later
@bryanwillis
bryanwillis / Navigation.php
Created January 9, 2016 02:25 — forked from aaroneaton/Navigation.php
Using the Zurb Foundation Top Bar with WordPress menus
<?php
class Navigation {
public function __construct() {
// Move the navigation to the header element
remove_action( 'genesis_after_header', 'genesis_do_nav' );
remove_action( 'genesis_site_title', 'genesis_seo_site_title' );
// remove_action( 'genesis_header', )
@bryanwillis
bryanwillis / genesis-sidebar-defaults.php
Created January 9, 2016 02:25 — forked from wpsmith/genesis-sidebar-defaults.php
Modifies the Genesis Sidebar Defaults
<?php
/*
Plugin Name: Genesis Sidebars Defaults Plugin
Plugin URI: http://www.wpsmith.net/
Description: Modifies the Genesis Sidebar Defaults
Version: 0.0.1
Author: Travis Smith
Author URI: http://www.wpsmith.net/
License: GPLv2
@bryanwillis
bryanwillis / genesis-box-widget.php
Created January 9, 2016 02:23 — forked from studiopress/genesis-box-widget.php
Genesis box after posts.
<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.
//* Register Genesis box widget area
genesis_register_sidebar( array(
'id' => 'after-post',
'name' => __( 'Genesis Box', 'themename' ),
'description' => __( 'This is a widget area that can be placed after the post', 'themename' ),
) );
@bryanwillis
bryanwillis / Foundation5-TopBar-Wordpress-Genesis.php
Created January 9, 2016 02:22
Add Foundation Top-Bar Navigation to Wordpress Genesis Child Theme
// A Fork of: http://garethcooper.com/2014/01/zurb-foundation-5-and-wordpress-menus/
/**
*
* Do Primary Top-Bar Navigation
*
**/
add_action('genesis_header', 'custom_do_top_bar_navigation', 11);
function custom_do_top_bar_navigation() { ?>
@bryanwillis
bryanwillis / Foundation5-Off-Canvas-Wordpress-Genesis.php
Created January 9, 2016 02:22
Add Foundation Off-Canvas Navigation to Wordpress Genesis Child Theme
/**
*
* Off-Canvas Navigation required Open & Close Wraps
*
**/
// OPEN Off Canvas Wraps
add_action('genesis_before_header', 'custom_do_open_off_canvas_wraps', 9);
function custom_do_open_off_canvas_wraps() { ?>
@bryanwillis
bryanwillis / functions.php
Created January 9, 2016 02:21 — forked from heycharchar/functions.php
Add Genesis Box on Single Posts support for HTML5 by Charlotte Anne
<?php
//* Do NOT include the opening php tag
/** Add Genesis Box on Single Posts support for HTML5 by Charlotte Anne**/
add_action('genesis_before_comments', 'child_genesis_box');
function child_genesis_box() {
if ( is_single() )
require(CHILD_DIR.'/genesis-box.php');
}
@bryanwillis
bryanwillis / Add Remove
Created January 9, 2016 00:17 — forked from jmariano13/Add Remove
Genesis
<?php
//Layout.php
add_action( 'genesis_init', 'genesis_create_initial_layouts', 0 );
Feed.php
add_filter( 'feed_link', 'genesis_feed_links_filter', 10, 2 );
add_action( 'template_redirect', 'genesis_feed_redirect' );
Options.php
add_filter( 'get_term', 'genesis_get_term_filter', 10, 2 );
//SEO.php
add_action( 'after_setup_theme', 'genesis_seo_compatibility_check', 5 );