Last active
December 14, 2015 19:59
-
-
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…
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
/* = 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; | |
} |
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
// 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