• Resolved cmykrgbb

    (@cmykrgbb)


    Hello,

    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!

Viewing 11 replies - 1 through 11 (of 11 total)
  • 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?

    Thread Starter cmykrgbb

    (@cmykrgbb)

    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?

    Cheers!

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

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

    Thread Starter cmykrgbb

    (@cmykrgbb)

    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

    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.

    Thread Starter cmykrgbb

    (@cmykrgbb)

    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.

    No – there are no risks.

    Thread Starter cmykrgbb

    (@cmykrgbb)

    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

    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.

    Thread Starter cmykrgbb

    (@cmykrgbb)

    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!

    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.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Page title is repeated in some pages’ is closed to new replies.