Skip to content

Instantly share code, notes, and snippets.

@farookibrahim
Created February 9, 2016 08:55
Show Gist options
  • Select an option

  • Save farookibrahim/8734b9db5f70f055f399 to your computer and use it in GitHub Desktop.

Select an option

Save farookibrahim/8734b9db5f70f055f399 to your computer and use it in GitHub Desktop.
Bethlehem Header Navigation Links Customize
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',
),
array(
'title' => esc_html__( 'Media', 'bethlehem' ),
'link' => get_post_type_archive_link( 'sermons' ),
'icon' => 'fa fa-youtube-play',
'class' => 'sermons-link',
),
array(
'title' => esc_html__( 'Give Online', 'bethlehem' ),
'link' => get_post_type_archive_link( 'give_forms' ),
'icon' => 'fa fa-heart-o',
'class' => 'donations-link',
),
array(
'title' => esc_html__( 'Donate Now', 'bethlehem' ),
'link' => get_post_type_archive_link( 'give_forms' ),
'icon' => '',
'class' => 'btn donate-btn',
)
);
return $args;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment