Skip to content

Instantly share code, notes, and snippets.

View atcraigwatson's full-sized avatar

Craig Waton atcraigwatson

  • Watson Memorials
  • United Kingdom
  • 04:48 (UTC)
View GitHub Profile
@salcode
salcode / .gitignore
Last active February 27, 2024 12:14
Please see https://salferrarello.com/wordpress-gitignore/ 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)
# -----------------------------------------------------------------
# .gitignore for WordPress @salcode
# ver 20180808
#
# From the root of your project run
# curl -O https://gist.githubusercontent.com/salcode/b515f520d3f8207ecd04/raw/.gitignore
# 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.
/** 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 http://wpsites.net/web-design/change-layout-genesis/
*/
function full_width_layout_single_posts( $opt ) {
if ( is_singular( 'post' ) ) {
$opt = 'full-width-content';
return $opt;