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
| if ( ! function_exists( 'bethlehem_social_icons' ) ) { | |
| /** | |
| * Display social icons | |
| * If the subscribe and connect plugin is active, display the icons. | |
| * @link http://wordpress.org/plugins/subscribe-and-connect/ | |
| * @since 1.0.0 | |
| */ | |
| function bethlehem_social_icons() { | |
| $social_icons_args = apply_filters( 'bethlehem_social_icons_args', array( |
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_filter( 'blog_archive_link_text', 'custom_blog_archive_link_text' ); | |
| function custom_blog_archive_link_text() { | |
| return esc_html__( 'Text', 'bethlehem' ); | |
| } |
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 init to perform remove_action on child theme | |
| add_action( 'init', 'bethlehem_child_init', 10 ); | |
| function bethlehem_child_init() { | |
| // remove nav links on header | |
| remove_action( 'bethlehem_header_3_nav_bar', 'bethlehem_navigation_links', 20 ); | |
| } | |
| // To add search block | |
| add_action( 'bethlehem_header_3_nav_bar', 'custom_header_search_block', 20 ); | |
| function custom_header_search_block() { |
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_action( 'init', 'bethlehem_child_init', 10 ); | |
| function bethlehem_child_init() { | |
| // remove nav links on header | |
| remove_action( 'bethlehem_header_3_nav_bar', 'bethlehem_navigation_links', 20 ); | |
| } | |
| if ( ! function_exists( 'bethlehem_primary_navigation' ) ) { | |
| /** | |
| * Display Primary Navigation | |
| * @since 1.0.0 |
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_filter( 'bethlehem_header_navbar_link_args', 'bethlehem_child_header_navbar_link_args' ); | |
| if( ! function_exists( 'bethlehem_child_header_navbar_link_args' ) ) { | |
| function bethlehem_child_header_navbar_link_args( $args ) { | |
| $args = array( | |
| array( | |
| 'title' => esc_html__( 'Calendar', 'bethlehem' ), | |
| 'link' => tribe_get_events_link(), | |
| 'icon' => 'fa fa-calendar', | |
| 'class' => 'events-link', |
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_filter( 'unicase_header_contact_info', 'custom_apply_header_contact_info', 20 ); | |
| function custom_apply_header_contact_info( $info ) { | |
| global $unicase_options; | |
| if ( !empty( $unicase_options['header_support_phone'] ) || !empty( $unicase_options['header_support_email'] ) ) : | |
| ob_start(); | |
| ?> | |
| <div class="contact-row"> | |
| <?php if( !empty( $unicase_options['header_support_phone'] ) ) : ?> | |
| <div class="phone inline"> |
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_action( 'woocommerce_before_main_content', 'custom_banner_html' ); | |
| function custom_banner_html() { | |
| ?> | |
| <div class="row inner-bottom-xs"> | |
| <div class="col-md-4"> | |
| <img src=""> | |
| </div> | |
| <div class="col-md-4"> | |
| <img src=""> | |
| </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_action( 'init', 'bethlehem_child_init', 10 ); | |
| function bethlehem_child_init() { | |
| // remove nav links on header | |
| remove_action( 'bethlehem_page_after', 'bethlehem_display_comments', 10 ); | |
| remove_action( 'bethlehem_single_post_after', 'bethlehem_display_comments', 10 ); | |
| } |
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
| <?php | |
| get_header(); | |
| ob_start(); | |
| if( have_posts() ) { | |
| get_template_part( 'loop' ); |
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
| <?php | |
| get_header(); | |
| ob_start(); | |
| while ( have_posts() ) : the_post(); | |
| do_action( 'unicase_single_post_before' ); | |