The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. On-Page / Site Optimization
    4. Wordpress duplicate titles - can't find original title tags

    Wordpress duplicate titles - can't find original title tags

    On-Page / Site Optimization
    8 5 480
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • lauratagdigital
      lauratagdigital last edited by

      I added new code to rewrite the page titles <title><?php wp_title(''); ?></title>

      But I can't find the normal title tags in the Header PHP file in editor so I now have duplicate titles tags in the source code

      This is the code - can't see what else would be titles?  This is the website ...

      http://apexgenerators.co.uk/

      <title><?php wp_title(''); ?></title>

      eFavIcon(); ?>

      eCSS(); ?>

      enabled('Theme')) { ?>

      http://fonts.googleapis.com/css?family=PT+Sans:400,700,400italic,700italic" />

      1 Reply Last reply Reply Quote 0
      • RuiZhiDong
        RuiZhiDong last edited by

        Hi Laura,

        That would depend on the theme you are using

        If you can't find it in the header file you could check the other files

        It looks like it's actually the nav bar that's coming on the title

        1 Reply Last reply Reply Quote 1
        • stukerr
          stukerr last edited by

          Hi Laura,

          If I remember correctly (it was a while since I messed around with these things), doesn't wp_title() actually add the <title>tags itself? If so you would just need:</p> <blockquote style="background: none repeat scroll 0% 0% #f7f7f7; padding-top: 5px; margin-left: 0px; padding-left: 2px; padding-bottom: 5px; white-space: nowrap; overflow-y: auto; font-family: monospace;"> <p><meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /></p> <p><?php wp_title(''); ?></p> <p>    <?php sg_header_meta(); ?></p> </blockquote> <p>There is more info here : <a href="http://codex.wordpress.org/Function_Reference/wp_title">http://codex.wordpress.org/Function_Reference/wp_title</a></p> <p>If that doesn't do it, you could always try reversing your changes and use an SEO plugin, like the awesome Yoast Wordpress SEO (<a href="http://wordpress.org/extend/plugins/wordpress-seo/">http://wordpress.org/extend/plugins/wordpress-seo/</a>) which should allow you to change the titles without mucking around with the wordpress code itself.</p> <p>Hope that helps!</p> <p>Stuart</p></title>

          1 Reply Last reply Reply Quote 0
          • Christy-Correll
            Christy-Correll last edited by

            Hi Laura, has your issue been resolved?

            lauratagdigital 1 Reply Last reply Reply Quote 0
            • lauratagdigital
              lauratagdigital @Christy-Correll last edited by

              Hi Christy,

              No - I still have two sets of titles in the source code but only one that I can see in the theme editor.

              Laura

              evolvingSEO 2 Replies Last reply Reply Quote 0
              • evolvingSEO
                evolvingSEO @lauratagdigital last edited by

                Hi Laura

                I've used this theme before, so I'm going to look into how I got it to work with Yoast and I'll get back to you here.

                -Dan

                1 Reply Last reply Reply Quote 0
                • evolvingSEO
                  evolvingSEO @lauratagdigital last edited by

                  One quick question first - did you try checking of "force rewrite titles" under title settings in Yoast?

                  1 Reply Last reply Reply Quote 0
                  • evolvingSEO
                    evolvingSEO last edited by

                    Laura

                    As mentioned below, I have this theme on an active website now with Yoast running and seem to have it working.

                    This is the Felis WordPress theme by fireform if anyone else is curious.

                    Try;

                    • removing the extra title tag code you added the header.php

                    • select "force rewrite titles" in title settings

                    Let's see if that does it - I don't recall editing any other code to make it work, but I could be wrong, in which case I'll dig a little more for you.

                    -Dan

                    1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    • First post
                      Last post
                    • MOZ identifies duplicate titles - one has' www' in the title
                      Substance-create
                      Substance-create
                      0
                      5
                      41

                    • My website have h1 tags , but still crawlers can't find them?
                      GastonRiera
                      GastonRiera
                      0
                      2
                      89

                    • Duplicate Title Tags/Meta Tags for Website with Multiple Locations
                      RuthBurrReedy
                      RuthBurrReedy
                      0
                      5
                      564

                    • Avoiding Duplicate Title Tags and Duplicate Content
                      Marston_Gould
                      Marston_Gould
                      1
                      11
                      344

                    • My company's product is referred to by two different names (SVN and Subversion). When cleaning up our Title tags, is it OK to use either name to keep the title tags around 70 characters?
                      johnny122
                      johnny122
                      0
                      2
                      168

                    • Is Google indexing something I can't see on my page title?
                      Marcus_Miller
                      Marcus_Miller
                      0
                      7
                      162

                    • Using phrases like 'NO 1' or 'Best' int he title tag
                      Webrevolve
                      Webrevolve
                      0
                      6
                      133

                    • Changed Blog Name - Duplicate Title Tags - Wordpress
                      Joshlaska
                      Joshlaska
                      0
                      3
                      253

                    Get started with Moz Pro!

                    Unlock the power of advanced SEO tools and data-driven insights.

                    Start my free trial
                    Products
                    • Moz Pro
                    • Moz Local
                    • Moz API
                    • Moz Data
                    • STAT
                    • Product Updates
                    Moz Solutions
                    • SMB Solutions
                    • Agency Solutions
                    • Enterprise Solutions
                    • Digital Marketers
                    Free SEO Tools
                    • Domain Authority Checker
                    • Link Explorer
                    • Keyword Explorer
                    • Competitive Research
                    • Brand Authority Checker
                    • Local Citation Checker
                    • MozBar Extension
                    • MozCast
                    Resources
                    • Blog
                    • SEO Learning Center
                    • Help Hub
                    • Beginner's Guide to SEO
                    • How-to Guides
                    • Moz Academy
                    • API Docs
                    About Moz
                    • About
                    • Team
                    • Careers
                    • Contact
                    Why Moz
                    • Case Studies
                    • Testimonials
                    Get Involved
                    • Become an Affiliate
                    • MozCon
                    • Webinars
                    • Practical Marketer Series
                    • MozPod
                    Connect with us

                    Contact the Help team

                    Join our newsletter
                    Moz logo
                    © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
                    • Accessibility
                    • Terms of Use
                    • Privacy