Yoast SEO title appearing Twice with X Child Theme

Hello,
For some reason our title is appearing Twice. We are uisng Yoast. When we add a custom title in Yoast, it appears on the top and title for the page appears as well. See below.

We are using latest X theme and using a Child Theme.

Can you please help us how to fix this ?
We do not have social graphs turned on in X theme

image

Hey @chinnailu,

What we can do in case our theme conflicts with a 3rd party plugin is to post it in our issue tracker so that it will be queued for investigation by our development team. Our development team will then decide if they’ll provide a fix for the plugin in one of the succeeding product updates.

With that said, please perform the following troubleshooting steps.

  1. Switch to the parent X theme. If this resolves the issue, the cause is surely a custom code in your child theme. Regretfully, we do not provide support for child theme modifications so you’d need to hire or consult with a developer to assist you to fix the issue.
  2. If #1 doesn’t work, deactivate all 3rd party plugins except Yoast SEO. If this resolves the issue, activate 1 3rd party plugin at a time while checking if the issue will come back each time you activate so you’ll find the plugin that’s causing the issue. In the case, report the issue to the plugin developer.

Only if none of that helps, give us the following information in a Secure Note and we’ll investigate what’s causing the issue.

  • WordPress Login URL
  • Admin level username and password

Thanks.

Hello,
Thanks for the response. When I do live preview of the Parent X theme, it seem to work.
We are using ethos theme.
Where could the issue be ? Any suggestion on where to look at the code, which file usually defines the title.
We will try to troubleshoot. Please suggest.

Is there some file we can copy from parent theme to get it to work like before ?

We managed to close the issue. There was code written to show it on every page. We put in the code below to show the title only on the Page, instead of Post. Hope it helps others.
It was in folder : wp-content/themes/x-child/framework/views/ethos/ and file name : _landmark-header.php

    if( is_page() ):
 $disable_page_title = get_post_meta( get_the_ID(), '_x_entry_disable_page_title', true );?>
 <header class="x-header-landmark x-container max width">
   <h1 class="entry-title"><span> <?php echo get_post_meta($post->ID, '_yoast_wpseo_title', true);?> </span></h1>
   </header>
   <?php endif; ?>

Hi @chinnailu,

Great that you are able to solve it.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.