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. Moz Tools
    4. In Crawl Diagnostics, length of title element is incorrect

    In Crawl Diagnostics, length of title element is incorrect

    Moz Tools
    6 3 175
    • 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.
    • RichAlbanese
      RichAlbanese last edited by

      Hey all,

      It appears the Moz crawler is misreading the number of characters in my website's page titles.  It shows 72 characters for the following page's title element:

      http://giavan.com/products/orange-crystal-chain-necklace-with-drop

      The page title for this web page is: Orange Crystal Chain Necklace with Drop | Giavan

      which is 48 characters.  As it stands, this page title is displayed at 48 characters in Google SERPs.

      I am getting "This Element is Too Long" issue on 925 pages, which is just about the entire site. These issues appeared after I added additional Shopify (Liquid) code to the page title.  If you inspect the code, you will see title element looks a bit odd with extra spacing and line breaks.

      What I'd like to know is whether or not it's necessary to rewrite the Shopify code, for SEM purposes.  My feeling is that it's okay because the page titles look fine in SERPs but those 925 Moz crawl errors are kind of scary.

      Thanks for your help!

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

        It is my understanding that it is based on pixels and not so much characters count.  For example:

        mommy

        little

        Mommy is only 5 characters, while Little is a whole character more.  However, it is the actual distance, not the character count.  At least that is my understanding.

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

          The post by Tiffany is correct, but most crawlers like moz work on string length. What the issue looks like is that the template is sending out a lot of white space that is being counted in the string length. Where this comes into play and why it is not noticeable is this. In html if you have two spacebar spaces, it will only render as one space in viewports. But in the code you will still have the two spaces.

          The best solution to fix what you have would be to try to attach a filter to your current code, thus reducing the number of blank spaces and line breaks. Can you past what liquid code you currently have to generate the page title and I might can work something out to test. I haven't used liquid before, but it looks close enough to smarty that I might could work something out.

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

            Here is the liquid code.  It inserts tags like "Red" and "Teardrop" into the page title to make the page title more descriptive.

            <title><br /> {% if current_tags %} {{ current_tags | join: ', ' | capitalize }}{% endif %}<br /> {{ page_title }}<br /> <br /> {% if current_page != 1 %} – Page {{ current_page }}{% endif %}<br /> {% unless page_title contains shop.name %} | {{ shop.name }}{% endunless %}<br /></title>

            Thanks so much for helping me out with this.

            LesleyPaone 1 Reply Last reply Reply Quote 0
            • LesleyPaone
              LesleyPaone @RichAlbanese last edited by

              Ok this might help without changing any code really. The way most templating languages work is they preserve spaces and returns between statements so they can be formatted correctly. Just put your code on one line like this

              {% if current_tags %} {{ current_tags | join: ', ' | capitalize }}{% endif %}{{ page_title }}{% if current_page != 1 %} – Page {{ current_page }}{% endif %}{% unless page_title contains shop.name %} | {{ shop.name }}{% endunless %}

              With no spaces in between. Then test it, if everything is run together just a space between the variable. But that should take out the hard returns and return your title tag on one line like normal.

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

                This appears to have fixed the problem, thank you.  Had to add a non-breaking space before {% endif %}{{ page_title }} but from what I can tell, your solution resolved the character count discrepancy.  I expect this will be validated when Moz re-crawls the site.

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post
                • Crawl Diagnostics
                  Studio33
                  Studio33
                  0
                  9
                  298

                • Crawl report shows Title Element too long but they aren't
                  chris.elevate
                  chris.elevate
                  0
                  3
                  116

                • I've got quite a few "Duplicate Page Title" Errors in my Crawl Diagnostics for my Wordpress Blog
                  Devanur-Rafi
                  Devanur-Rafi
                  0
                  2
                  292

                • I'm getting "Issue: Title Element Too Long" when the title of the overall website + page title are being combined, shouldn't this solely depend on the page title itself?
                  DougRoberts
                  DougRoberts
                  0
                  2
                  534

                • Crawl Diagnostics Summary
                  Keszi
                  Keszi
                  0
                  4
                  409

                • Errors on my Crawl Diagnostics
                  rhutchings
                  rhutchings
                  0
                  2
                  645

                • On the Crawl Diagnostics Summary, its reporting over 100 "Title Missing or Empty" issues, but they all check out fine?
                  sjr4x4
                  sjr4x4
                  0
                  5
                  1.0k

                • SEOMoz's Crawl Diagnostics showing an error where the Title is missing on our Sitemap.xml file?
                  Hurf
                  Hurf
                  0
                  3
                  1.4k

                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