Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter algokittens

    (@algokittens)

    header-content.php looks like this:

    <?php
    $show_title = ( true === get_theme_mod( 'display_title_and_tagline', true ) );
    $has_primary_nav = has_nav_menu( 'primary' );
    $header_classes  = 'site-header header_classes';
    $header_classes .= has_custom_logo() ? ' has-logo' : '';
    $header_classes .= $show_title ? ' has-title-and-tagline' : '';
    $header_classes .= $has_primary_nav ? ' has-menu' : '';
    ?>
    
    <?php if ( true === get_theme_mod( 'show_site_header', false ) ) : ?>
    	<header id="masthead" class="<?php echo $header_classes; ?>" role="banner">
    		<?php get_template_part( 'template-parts/header/site-branding' ); ?>
    		<?php get_template_part( 'template-parts/header/navigation' ); ?>
    	</header><!-- #masthead -->
    <?php elseif ( ! is_singular() ) : ?>
    	<header id="masthead" class="<?php echo $header_classes; ?>" role="banner">
    		<?php get_template_part( 'template-parts/header/site-branding' ); ?>
    	</header><!-- #masthead -->
    <?php endif; ?>
    • This reply was modified 3 years, 3 months ago by algokittens.
    Plugin Author cubecolour

    (@numeeja)

    Please provide a link to a page on your site where the issue can be seen

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Featured image displays twice (Blank Canvas theme)’ is closed to new replies.