• Erin

    (@erinjholmes)


    How do I hide the logo and description to twenty nineteen?

    <div class=”site-branding”>

    <?php if ( has_custom_logo() ) : ?>
    <div class=”site-logo”><?php the_custom_logo(); ?></div>
    <?php endif; ?>
    <?php $blog_info = get_bloginfo( ‘name’ ); ?>
    <?php if ( ! empty( $blog_info ) ) : ?>
    <?php if ( is_front_page() && is_home() ) : ?>
    <h1 class=”site-title”>” rel=”home”><?php bloginfo( ‘name’ ); ?></h1>
    <?php else : ?>
    <p class=”site-title”>” rel=”home”><?php bloginfo( ‘name’ ); ?></p>
    <?php endif; ?>
    <?php endif; ?>

    <?php
    $description = get_bloginfo( ‘description’, ‘display’ );
    if ( $description || is_customize_preview() ) :
    ?>
    <p class=”site-description”>
    <?php echo $description; ?>
    </p>
    <?php endif; ?>

Viewing 1 replies (of 1 total)
  • Thread Starter Erin

    (@erinjholmes)

    I just want to use the logo but hide the rest. I’m missing something here, not sure if I’m forgetting a comma or what but I’m going to start from scratch with the above.

Viewing 1 replies (of 1 total)
  • The topic ‘Logo and Descriptiom’ is closed to new replies.