Created
May 31, 2017 14:54
-
-
Save leducson1/44a74b8e747d1c52696cd364660869fb to your computer and use it in GitHub Desktop.
Tùy biến breadcrumb
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
// tùy biến breadcrumb | |
function b3m_prefix_breadcrumb( $args ) { | |
$args['labels']['prefix'] = ''; | |
return $args; | |
} | |
add_filter( 'genesis_breadcrumb_args', 'b3m_prefix_breadcrumb' ); | |
function b3m_home_text_breadcrumb( $args ) { | |
$args['home'] = 'Trang chủ'; | |
return $args; | |
} | |
add_filter( 'genesis_breadcrumb_args', 'b3m_home_text_breadcrumb' ); | |
function b3m_change_breadcrumb_separator( $args ) { | |
$args['sep'] = ' » '; | |
return $args; | |
} | |
add_filter( 'genesis_breadcrumb_args', 'b3m_change_breadcrumb_separator' ); | |
genesis_register_sidebar( array( | |
'id' => 'before-content', | |
'name' => __( 'Before Content', 'agency' ), | |
'description' => __( 'Content Displays Before All Single Posts.', 'agency' ), | |
) ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment