Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@mclanecreative
Last active December 14, 2015 19:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mclanecreative/5140814 to your computer and use it in GitHub Desktop.
Save mclanecreative/5140814 to your computer and use it in GitHub Desktop.
/// WordPress hack /// Fashioned after ESPN Insider, this function is intended to prompt non-members to join a WordPress site. This code will be created in a way which the administrator can copy/paste the snippet into function.php, customize the graphic/URLs, and style via CSS. For this usage, we'll hide/show content with S2member pro. But any m…
/* = Stuff added for the login/logout
-------------------------------------------------------------- */
.well-join {
display: block;
background-image: url(http://uywi.org/wp-content/uploads/2013/03/theWell_JoinBoxR02.jpg);
background-repeat:no-repeat;
height:300px;
width:760px;
text-indent:-9999px;
padding-top:.7em;
padding-bottom:.7em;
}
// Adds ESPN Insider-styled functionality //
function thewell_catchall() {
if ( is_user_logged_in() )
{ echo '';}
else
return "<a href='/the-well/join/' class='well-join'></a>";}
add_shortcode('thewell', 'thewell_catchall');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment