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 [emailme]nathan@brilliantly.net[/emailme] | |
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('emailme', '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
// Change Pods MORE FIELDS Metabox Title to Custom | |
add_filter('pods_meta_default_box_title','ni_changethatname',10,5); | |
function ni_changethatname($title, $pod, $fields, $type, $name ) { | |
// assuming we are changing the meta box title on a pod named 'business' | |
$title = ($name=='POD-SLUG-HERE') ? __('WHAT YOU WANT TO CALL IT HERE', 'plugin_lang') : $title ; | |
return $title; | |
} |
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
/********************************************* | |
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
add_theme_support( 'builder-responsive', array('tablet-width' => '1023px', 'mobile-width' => '767px' )); |
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
add_filter( 'show_admin_bar', '__return_false' ); |