Skip to content

Instantly share code, notes, and snippets.


Craig Waton atcraigwatson

  • RokkitPress
  • United Kingdom
View GitHub Profile
salcode / .gitignore
Last active Dec 1, 2021
Please see for the canonical version of this WordPress .gitignore file. Note: I do not receive notifications for comments here (because GitHub does not send notifications on Gists)
View .gitignore
# -----------------------------------------------------------------
# .gitignore for WordPress @salcode
# ver 20180808
# From the root of your project run
# curl -O
# to download this file
# By default all files are ignored. You'll need to whitelist
# any mu-plugins, plugins, or themes you want to include in the repo.
View Force full width layout on single posts Genesis
/** Force full width layout on single posts only*/
add_filter( 'genesis_pre_get_option_site_layout', 'full_width_layout_single_posts' );
* @author Brad Dalton
* @link
function full_width_layout_single_posts( $opt ) {
if ( is_singular( 'post' ) ) {
$opt = 'full-width-content';
return $opt;