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
// Select Builder Layout Automatically for Logged In Users | |
function ni_logged_in_layout(){ | |
if ( is_user_logged_in() ) { | |
$layout = '555cdacdbbbb5'; | |
} | |
return $layout; | |
} | |
add_filter( 'builder_filter_current_layout', 'ni_logged_in_layout'); |
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
/*************************************************** | |
Design to Builder Webinar CSS | |
***************************************************/ | |
/* Header + Nav */ | |
ul#menu-vandalay-menu li a { | |
color: #17335B; | |
text-decoration: none; | |
font-weight: bold; |
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
//Anti-Spam Email Shortcode | |
//Use this shortcode [email]info@google.com[/email] | |
function protect_email_address( $atts , $content=null ) { | |
for ($i = 0; $i < strlen($content); $i++) $encodedmail .= "&#" . ord($content[$i]) . ';'; | |
return '<a href="mailto:'.$encodedmail.'">'.$encodedmail.'</a>'; | |
} | |
add_shortcode('email', 'protect_email_address'); |
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
/********************************************* | |
Resource Library CSS | |
*********************************************/ | |
.resource-library a { | |
text-decoration: none; | |
background: url(/icons/pdf.png) left center no-repeat; | |
background-size: 30px 30px; | |
padding: 15px 0 15px 40px; | |
} |
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
.resource-library a { | |
padding: 10px 0 10px 50px; | |
text-decoration: none; | |
display: block; | |
line-height: 1.1em; | |
background-size: 30px 30px !important; | |
} | |
.resource-library a:hover { |
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
/********************************************* | |
Full Width Awesomeness Webinar | |
*********************************************/ | |
/* Header Logo and Navigation */ | |
#header-container-wrapper { | |
position: absolute; | |
top: 0; | |
width: 100%; |
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
[rev_slider alias="Home2"] | |
<div id="header-container-wrapper"> | |
<div id="header-container"> | |
<div id="header-logo"><a href="http://wpnathan.com"><img src="http://wpnathan.com/wp-content/media/lone-palm-logo.png"></a></div> | |
<div id="header-menu"><?php wp_nav_menu( array('menu' => 'Palm Menu' )); ?></div> |
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
// Hides WP Help Functions for Non-Admins | |
// Add to the functions.php of your active child theme | |
function ni_hide_wphelp_actions() { | |
echo '<style type="text/css"> | |
#cws-wp-help-actions {display:none !important;} | |
</style>'; | |
} | |
if ( ! current_user_can('administrator') ) { |
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
/* Full Width Blog Featured Image & Info */ | |
#ni-blog-wrapper { | |
height: 75vh; /* 1vh = 1% of viewport height */ | |
background-size: cover; | |
background-position: center center; | |
position: relative; | |
} | |
#ni-blog-info { |