wordliner
Forum Replies Created
Viewing 2 replies - 1 through 2 (of 2 total)
-
Forum: Plugins
In reply to: [Breadcrumb NavXT] Cover image instead of Nav LinksThank you very much. You’r awesome. We did it 🙂 Rate 5 star 🙂
Forum: Plugins
In reply to: [Breadcrumb NavXT] Cover image instead of Nav LinksHello. Thx for response. I Added breadcrumb manualy to the header with function
<?php ntx_mag_breadcrumb(); ?>Thanks to that breadcrumb displays evrywhere, try search page, try 404, try category. Evrything works except single post page. When i delete this function cover image from post page dissapears.So i am guessing this function has been responsible for bug.
function ntx_mag_breadcrumb(){ $post_id = get_the_ID(); $post_template = get_post_meta($post_id, '_wp_page_template', true); $except = array( 'page-home.php', 'page-vc-page.php' ); if(!in_array($post_template, $except)){ if( is_page() ){ ?> <section class="int-header"> <div class="container"> <div class="row"> <div class="col-xs-12"> <h4><?php echo strtoupper(esc_html(get_the_title())) ?></h4> <div class="breadcrumb <?php echo esc_attr(mag_ntx_custom_background_for_breadcrumb()) ?>" typeof="BreadcrumbList" vocab="http://schema.org/"> <?php if(function_exists('bcn_display')) { bcn_display(); }?> </div> </div> <!-- end col-12 --> </div> <!-- end row --> </div> <!-- end container --> </section> <!-- end int-header --> <?php } else{ ?> <section class="article-header article-bg <?php echo (is_single())? 'banner-single': '' ?>"> <?php if(!is_single()){ ?> <div class="container article-header-content"> <div class="row"> <div class="col-xs-12"> <div class="breadcrumbs <?php echo esc_attr(mag_ntx_custom_background_for_breadcrumb()) ?>" typeof="BreadcrumbList" vocab="http://schema.org/"> <?php if(function_exists('bcn_display')) { bcn_display(); }else{ // Default homepage: which is both front page and blog post if(is_home() && is_front_page()){ ?> <h4><?php echo strtoupper(esc_html__('Blog', 'mag')) ?></h4> <?php } if(is_archive()){ ?> <h4><?php echo strtoupper(get_the_archive_title()); ?></h4> <?php } } ?> </div> </div> <!-- end col-12 --> </div> <!-- end row --> </div> <?php } ?> <!-- end container --> </section> <?php } } }I read that peopole had similiar problem with single post with some frameworks and some custom post classes.
I also tried to edit breadcrumb trail. No luck.
Plase help.
Best Regards
Kamil
Viewing 2 replies - 1 through 2 (of 2 total)