No displayed header name in

Dear,

My website name is not being displayed in Perth pro.
Please take a look at the picture.
website:https://www.crystalpurewater.eu

Kind Regards,

Kevin

Hello Kevin,

That’s default behavior, you can display logo image or site title with tagline.

Please feel free to ask any other questions that you might have.

Kind Regards, Roman.
aThemes Support

Dear Roman,

Is there an option to activate both?
I only want my name and logo to be visible.

Kind Regards,

Kevin

Hello Kevin,

You can try to replace this code in functions.php file:

/**
 * Site branding
 */
if ( ! function_exists( 'perth_branding' ) ) :
function perth_branding() {
	if ( get_theme_mod('site_logo') ) :
		echo '<a href="' . esc_url( home_url( '/' ) ) . '" title="' . esc_attr(get_bloginfo('name')) . '"><img class="site-logo" src="' . esc_url(get_theme_mod('site_logo')) . '" alt="' . esc_attr(get_bloginfo('name')) . '" /></a>'; 
	else :
		echo '<h1 class="site-title"><a href="' . esc_url( home_url( '/' ) ) . '" rel="home">' . esc_html(get_bloginfo('name')) . '</a></h1>';
		if ( get_bloginfo( 'description' ) ) {
			echo '<h2 class="site-description">' . esc_html(get_bloginfo( 'description' )) . '</h2>';
		}
	endif;
}
endif;

…with this:

/**
 * Site branding
 */
if ( ! function_exists( 'perth_branding' ) ) {
	function perth_branding() {
		if ( get_theme_mod('site_logo') ) {
			echo '<a href="' . esc_url( home_url( '/' ) ) . '" title="' . esc_attr(get_bloginfo('name')) . '"><img class="site-logo" src="' . esc_url(get_theme_mod('site_logo')) . '" alt="' . esc_attr(get_bloginfo('name')) . '" /></a>'; 
		}

		echo '<h1 class="site-title"><a href="' . esc_url( home_url( '/' ) ) . '" rel="home">' . esc_html(get_bloginfo('name')) . '</a></h1>';

		if ( get_bloginfo( 'description' ) ) {
			echo '<h2 class="site-description">' . esc_html(get_bloginfo( 'description' )) . '</h2>';
		}
	}
}

But please note that you would have to repeat that modification after each theme update.

Otherwise you should properly override that function, here is a relevant tutorial:

Kind Regards, Roman.
aThemes Support

Dear Roman,

Thank you it worked! But now it is below the logo, how can i get it to the right side of the logo?

Kind Regards,

Kevin

Hello Kevin, try to use the following CSS code.

You can add CSS code in Customize → Additional CSS section.

@media (min-width: 460px) {
    .site-branding {
        width: 400px;
        min-width: 400px;
    }

    .site-title a {
        font-size: 26px;
    }

    .site-title {
        display: inline-block;
    }
}

Kind Regards, Roman.

1 Like

Dear Roman,

Thank you so much you’re te best!

Kind Regards,

Kevin

You are welcome Kevin!

And have a nice weekend :slight_smile:

Kind Regards, Roman.
aThemes Support

1 Like