This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function change_reg_message($message) | |
{ | |
// change messages that contain 'Register' | |
if (strpos($message, 'Register') !== FALSE) { | |
$newMessage = "Hello! We're so excited to have you as a member! Just enter a username and your email, and we'll have you squared away in no time."; | |
return '<p class="message register">' . $newMessage . '</p>'; | |
} | |
else { | |
return $message; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ----------------------------------------------------------------- | |
# .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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** 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; |