• Resolved htausch

    (@htausch)


    How do I use an if else statement to display site title if no site logo is used? I have php code written but it’s not working. I think it’s because function_exists('jetpack_the_site_logo') checks to see if jet pack is activated, not whether the Site Logo section contains an image:

    <?php if (function_exists('jetpack_the_site_logo')) : ?>
    			<?php jetpack_the_site_logo(); ?>
    		<?php else : ?>
    			<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
            <?php endif; ?>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Jetpack] Display Site Title when no Site Logo’ is closed to new replies.