This file contains hidden or 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
/* Series Engine CSS for two column view */ | |
/* Add this to wherever you put your CSS. Make sure to add the right and left classes */ | |
/* It would be wise to add another class to the 'affects all' if you are applying CSS sitewide and have multiple SE instances */ | |
/* Affects Left Side */ | |
.left-side-sermon-player .enmse-modern-message-meta { | |
display: none; | |
} |
This file contains hidden or 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
<div class="left-side-sermon-player">[your series engine shortcode]</div> | |
<div class="right-side-sermon-player">[your series engine shortcode]</div> |
This file contains hidden or 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 the Series Engine Logo */ | |
.enmse-poweredby { | |
display: none; | |
} |
This file contains hidden or 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
.fl-post-grid-post { | |
font-size: 14px; | |
background-color: #fbfbfb; | |
border: none; | |
box-shadow: 0 4px 1px rgba(197, 197, 197, 0.2); | |
background: #f6f6f6; | |
transition: all 0.3s linear; | |
width: 100%; | |
} |
This file contains hidden or 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
// Use ACF image field as avatar | |
//Have to create a User image field | |
add_filter('get_avatar', 'acf_profile_avatar', 10, 5); | |
function acf_profile_avatar( $avatar, $id_or_email, $size, $default, $alt ) { | |
// Get user by id or email | |
if ( is_numeric( $id_or_email ) ) { | |
$id = (int) $id_or_email; | |
$user = get_user_by( 'id' , $id ); |
This file contains hidden or 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 Welcome Widget | |
//Register the Widget | |
function reachco_welcome_metabox() { | |
// Get the current logged in user. | |
$current_user = wp_get_current_user(); | |
// Grab the users first name. | |
$name = $current_user->user_firstname; |
This file contains hidden or 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
//Login Page Customization | |
//Add the Logo | |
function reach_login_logo() { ?> | |
<style type="text/css"> | |
#login h1 a, .login h1 a { | |
background-image: url(#); //Replace the # with your image's URL | |
height:65px; | |
width:320px; | |
background-size: 320px 65px; |
This file contains hidden or 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
/* Make Sure to replace my ACF shortcodes with your own*/ | |
[wpbb-if post:featured_image] | |
<div class="pp-custom-grid-post-image"> | |
[wpbb post:featured_image size="large" display="tag" linked="no"] | |
</div> | |
[/wpbb-if] | |
<div class="pp-custom-grid-post-text"> | |
<h2 class="post-title">[wpbb post:title]</h2> |
This file contains hidden or 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
//How Conditional Shortcodes work to diplay this | |
[wpbb-if some-field-connection-shortcode] | |
<a href="[some-field-connection-shortcode]">my email icon</a> | |
[/wpbb-if] | |
[wpbb-if post:acf type='url' name='church_information_staff_email'] | |
<a href="mailto:[wpbb post:acf type='url' name='church_information_staff_email']"><span class="fas fa-envelope-open"></span></a> | |
[/wpbb-if] | |
//What we have here is a Beaver Builder shortcode that is conditional. |
This file contains hidden or 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 custom taxonomies to Filter bar | |
if (class_exists('Tribe__Events__Filterbar__Filter')): | |
class Tribe__Events__Filterbar__Custom extends Tribe__Events__Filterbar__Filter { | |
public $type = 'select'; | |
public function get_admin_form() { | |
$title = $this->get_title_field(); | |
$type = $this->get_multichoice_type_field(); | |
return $title.$type; | |
} |
OlderNewer