Commit 66148b2b by Pham Huy

update breadcrumb

parent f8b60e86
......@@ -52,10 +52,10 @@ if ( !function_exists( 'offshore_breadcrumbs' ) ) {
$category = get_the_category();
if ($category) {
foreach($category as $category) {
echo '<span class="child"><a href="' . esc_url(get_category_link( $category->term_id ) ) . '">' . esc_html( $category->name ) . '</a></span><i class="fa fa-chevron-right"></i>';
echo '<span class="child"><a href="' . esc_url(get_category_link( $category->term_id ) ) . '">' . esc_html( $category->name ) . '</a></span>';
}
}
echo '<span class="child">' . sprintf( esc_html__( 'Posts filed under %s', 'offshore' ), single_cat_title( '', false ) ) . '</span>';
//echo '<span class="child">' . sprintf( esc_html__( 'Posts filed under %s', 'offshore' ), single_cat_title( '', false ) ) . '</span>';
} elseif ( is_day() ) {
echo '<i class="fa fa-chevron-right"></i>';
echo '<span class="child"><a href="' . esc_url( get_year_link( get_the_time('Y') ) ) . '">' . esc_html( get_the_time('Y') ) . '</a></span><i class="fa fa-chevron-right"></i>';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment