Avatar of Marco Gasi
Marco Gasi
Flag for Spain asked on

Wordpress, custom logo and site title

Hi everybody.
I'm starting with WP.
I have installed Experon theme, then I created a child theme following these instructions.
Finally I have activated and slightly modified the theme using built-in functionalities.

I have uploaded the logo image and set it up in the admin panel but that done the site title is no more displayed.
What's going wrong?
Thank you
WordPressPHPContent Management

Avatar of undefined
Last Comment
Kimputer

8/22/2022 - Mon
Kimputer

In some cases, either buggy  code (both in html/css or the built-in editors), causes lay out issues.
In those case, revert to the latest "working" layout (with only the logo probably needing modification), then find the correct "logo to be replaced" file, and overwrite that file with your logo (keeping the old file name), BUT MAKING SURE the dimensions are exactly the same (otherwise you might introduce the layout errors again).
Terry Woods

When you switch from the main theme to the child theme, my understanding is that any existing theme options that you've set aren't brought through to the child theme. Could that be the cause?
Marco Gasi

ASKER
Thanks guys for your replies.
@Kimputer: actually, there is no an 'original logo'; in the admin panel, under Identity page I have the option to place a logo and it looks like the logo and the site title are mutually exclusive

@Terry: don't think that be the problem: in Identity page I have both the logo and the site title but only the first is displayed in the page; if I remove the logo the site title appears again.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
Marco Gasi

ASKER
Oh no, I was wrong: if I remove the logo the site title is no more displayed: the right text is displayed in the text box to set it up, but it is not displayed in the page!
ASKER CERTIFIED SOLUTION
Kimputer

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Marco Gasi

ASKER
Hi Kimputer. I did wht you suggest and I discovered that the source code really made logo and site title mutually exclusive:
	if ( ! empty( $check_logoset[0] ) ) {
	   if ( function_exists( 'the_custom_logo' ) ) {
			$output = get_custom_logo();
		}
	} else {
		if( display_header_text() ) {
			$output .= '<a rel="home" href="' . esc_url( home_url( '/' ) ) . '">';
			$output .= '<h1 rel="home" class="site-title" title="' . esc_attr( get_bloginfo( 'name', 'display' ) ) . '">' . esc_html( get_bloginfo( 'name' ) ) . '</h1>';
			$output .= '<h2 class="site-description" title="' . esc_attr( get_bloginfo( 'description', 'display' ) ) . '">' . esc_html( get_bloginfo( 'description' ) ) . '</h2>';
			$output .= '</a>';
		}
	}

Open in new window

Thank you
Marco Gasi

ASKER
Thank you
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Marco Gasi

ASKER
Kimputer

Sadly, I chalk this one up to maker of the theme. As much as he put in much of his time, he should have guided you by either having some information on the admin page where you fill this info in, or by using radio buttons where you can conclude yourself, that is was indeed mutually exclusive (so it would have saved you digging through the source code).