Skip to content

Commit

Permalink
FIX: full/minified breadcrumbs logic
Browse files Browse the repository at this point in the history
  • Loading branch information
MjHead committed Jun 16, 2017
1 parent 62912ce commit 56c28bf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion inc/template-tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,14 @@ function wapu_site_description() {
*/
function wapu_breadcrumbs() {

$path_type = ( is_singular( 'post' ) ) ? 'minified' : 'full';

$breadcrumbs_settings = apply_filters( 'wapu_breadcrumbs_settings', array(
'wrapper_format' => '<div class="container"><div class="breadcrumbs__title">%1$s</div><div class="breadcrumbs__items">%2$s</div><div class="clear"></div></div>',
'page_title_format' => '<h5 class="page-title">%s</h5>',
'show_on_front' => false,
'separator' => '&#124;',
'path_type' => 'minified',
'path_type' => $path_type,
'labels' => array(
'browse' => '',
),
Expand Down

0 comments on commit 56c28bf

Please sign in to comment.