[resolved] Page title is repeated in some pages (12 posts)

  1. cmykrgbb
    Posted 3 years ago #


    I have created a WordPress site and titles were working just fine. Then, some time and plugins installed later, I noticed that in SOME pages I get the title repeated 2 times.

    Example of wrong page title:
    Contact - NAME | NAME

    Example of normal title:
    Our Services | NAME

    Now, if I go to General Settings and change title it will change both, no improvement. SEO by Yoast has the option to reset page titles, but that just removes all titles leaving the current URL as page title.

    Here is the code I originally had:
    <title><?php wp_title(''); ?><?php if(wp_title('', false)) { echo ' | '; } ?><?php bloginfo('name'); ?></title>

    Here is the code I am using now:
    <title><?php wp_title('|'); ?></title>

    To sum up, I think somewhere in the database there's a wp_title rule repeated: once using '-' as separator, another one (the current one) using '|'.

    Any help will be most appreciated, thanks!

  2. esmi
    Forum Moderator
    Posted 3 years ago #

    This is probably a problem in your theme and how it (fails to) interact with Yoast's plugin. Where did you download the theme from?

  3. cmykrgbb
    Posted 3 years ago #

    Hey thanks for your quick answer!

    It's a themeforest one called 'Care'. Version 2.
    It is actually pretty good and has been working fantastic. I'd say it's well coded. I don't know at which point it started behaving like that really, or where to look because there is no plain html to modify.

    Would you suggest removing Yoast's plugin and see what happens?


  4. Andrew
    Forum moderator
    Posted 3 years ago #

    Have you contacted your theme's vendors? Commercial themes are not supported here, unfortunately.

  5. cmykrgbb
    Posted 3 years ago #

    No. I figured it would be an error affecting WordPress general settings, regarding page titles or the database, and not specifically the theme. I am going to send them an email right away though. Just in case. Thanks

  6. esmi
    Forum Moderator
    Posted 3 years ago #

    I'd actually suggest switching to the Twenty Eleven theme temporarily. If the problem disappears, then you've confirmed that it's a theme issue.

  7. cmykrgbb
    Posted 3 years ago #

    If I do that, then switch back again, is there any risk of errors, broken links or anything?
    I have been working on this theme for a long time and there are plenty of custom coded stuff and plugins.

  8. esmi
    Forum Moderator
    Posted 3 years ago #

    No - there are no risks.

  9. cmykrgbb
    Posted 3 years ago #

    I have just de-activated Yoast's plugin and problem solved, so this answers my question. I think it's time to move to All-in-One SEO.

    Thank you for your help

  10. KenKaiserNDC
    Posted 3 years ago #

    I have the same issue with the page TITLES disappearing.

    Which is Yoast's plug-in? Maybe it's the one affecting me too.

    Thank you.

  11. cmykrgbb
    Posted 3 years ago #

    WordPress SEO by Yoast. Try this:
    - Open Appearance>Editor>Header.php and on the first lines look for <title>STUFF</title>
    - Replace it with the simple <title><?php wp_title(' '); ?></title>
    - De-activate WordPress SEO plugin on the Plugins page
    - See if the problems is still present. If not, it's Yoast's plugin that's causing it.

    Hope that helps!

  12. KenKaiserNDC
    Posted 3 years ago #

    After I posted I discovered it was the Internet Explorer compatibility issue plaguing me again. Once I clicked the compatibility icon the disappearing titles issue was fixed.

    Thanks for the input though. I will keep the Yoast plugin issue in mind if it rears up again.

Topic Closed

This topic has been closed to new replies.

About this Topic