Skip to content

Instantly share code, notes, and snippets.

View bhwebworks's full-sized avatar

John Sundberg bhwebworks

View GitHub Profile
//* Child theme (do not remove)
define( 'CHILD_THEME_NAME', __( 'Agency Pro Theme', 'agency' ) );
define( 'CHILD_THEME_URL', 'http://my.studiopress.com/themes/agency/' );
define( 'CHILD_THEME_VERSION', '3.0.20131011' );
/**
* Filter Simple Page Ordering to exclude Pages but include custom post types that are hierarchical but don't have page attributes
*
* @link http://blackhillswebworks.com/?p=5017
*/
add_filter( 'simple_page_ordering_is_sortable', 'bhww_turn_off_simple_page_ordering_for_pages' );
function bhww_turn_off_simple_page_ordering_for_pages( $sortable ) {
/* HTML5 version */
.home .site-inner .soliloquy-container {
margin: 0 0 20px;
}
/* non-HTML5 version */
.home #inner .soliloquy-container {
margin: 0 0 20px;
}
/**
* Add a slider to the home page, if there is one to add
*
* @link http://blackhillswebworks.com/?p=4986
*/
add_action( 'genesis_before_content', 'metro_home_add_soliloquy_slider' );
function metro_home_add_soliloquy_slider() {
@bhwebworks
bhwebworks / BHWW Mobile Responsive Menu (footer nav with anchor) - add to style.css
Last active December 21, 2015 03:39
BHWW Mobile Responsive Menu (footer nav with anchor) - add to style.css
.gist-container {
background: url(images/gist-background-image.jpg) no-repeat center top;
min-height: 65px;
}
<div class="gist-container">
https://gist.github.com/6146811
</div>
@bhwebworks
bhwebworks / Embed Gists with a URL
Last active October 14, 2023 14:38
Add to functions.php or a mu-plugin
/**
* Embed Gists with a URL
*
* Usage:
* Paste a gist link into a blog post or page and it will be embedded eg:
* https://gist.github.com/2926827
*
* If a gist has multiple files you can select one using a url in the following format:
* https://gist.github.com/2926827?file=embed-gist.php
*
@bhwebworks
bhwebworks / metro-theme-widget-titles.php
Created May 17, 2013 16:50
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