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
function trc_custom_fonts($system_fonts) { | |
$system_fonts[ '10K Reasons' ] = array( | |
'fallback' => 'Verdana, Arial, sans-serif', | |
'weights' => array( | |
'300', | |
'400', | |
'700', | |
), | |
); | |
return $system_fonts; |
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
/* | |
* Change the endpoint menu order | |
*/ | |
function wpb_woo_my_account_order() { | |
$myorder = array( | |
'edit-account' => __( 'Change My Details', 'woocommerce' ), | |
'dashboard' => __( 'Dashboard', 'woocommerce' ), | |
'members-area' => __( 'My Courses', 'woocommerce' ), | |
'orders' => __( 'Orders', 'woocommerce' ), | |
'downloads' => __( 'Your Downloads', 'woocommerce' ), |
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
<a href="[wpbb post:url]"> | |
<div class="home-event-outer date-layout"> | |
<div class="event-left-item"> | |
<div class="event-item-date"> | |
<span>[wpbb post:the_events_calendar_start_date format="j"]</span> | |
</div> | |
<div class="event-item-month"> | |
<span>[wpbb post:the_events_calendar_start_date format="M"]</span> | |
</div> | |
</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
<div style="text-align: center; max-width: 500px; margin: auto; font-size: 24px;">We don't have any events scheduled right now, but you can sign up now to get updates for upcomign events here.</div><br><br> | |
<div class="button-area"> <div class="hover-over"> <a href="#" target="_blank" rel="noopener"> | |
<div class="more-link"><span class="button-group">Connect Here</span></div></a> | |
</div> | |
</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
// 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; | |
} |
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
/* 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
//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
//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
// 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 ); |