Home>Support>Display Logo and Site title at the same time

Display Logo and Site title at the same time

By cortlieb, 5 years ago. Last reply by Alex S, 5 years ago.

I’m using the “Corp”-Theme.
In the header I would like to display a logo as well as the Site title.
Unfortunately the Site title seems to be only displayed when a logo is missing.
As soon as I configure a logo the Site title goes away.

Is there any way to display both in the header?

Thank you.
Christian

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 5 years, 11 months ago Alex S
    Hi, I Work Here

    Hi Christain,

    This is possible by adding some PHP to your website. If you’re using a child theme, please add the following PHP to your child fucntions.php:

    if ( ! function_exists( 'siteorigin_corp_display_logo' ) ) :function siteorigin_corp_display_logo() {	if ( function_exists( 'has_custom_logo' ) && has_custom_logo() ) {		the_custom_logo();	}		if ( is_front_page() ) : ?>		<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>	<?php else : ?>		<p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a>
    
    	<?php endif;}endif;

    If you’re not using a child theme, I would add the above code to your website using Code Snippets. Once installed, please navigate to WP AdminSnippetsAdd New and add the above PHP. Click Save Changes & Activate. How does that look?

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More