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. Does show/hide element with javascript impact SEO

    Does show/hide element with javascript impact SEO

    On-Page / Site Optimization
    5 4 2.2k
    • 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.
    • VivaArturo
      VivaArturo last edited by

      Hi I am developing an ecommerce site and want to place text on all category and home page. The challenge is that 300 words of text for the pages does not fit into the design appropriately especially on the home page. If I were to use a show/hide element with javascript would this be seen as spam or a trick to the search engines.

      I do not think it is spam as it will be actual content for the site and the visitor can view it if they click on the show button.

      Would love to hear your thoughts?

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

        You can make with js a expand link or read more....

        That will be ok... Search engines will see the entire text where as users will have to click to see the entire text...

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

          Google see the text anyway as it is hard coded into the html, the JS is only used on the front end to show the user so they can hide/show the text.

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

            Ennovation and Malcolm are right - search engines will see the entire text, as long as the JS is just being used for show/hide (users without JS enabled will see the same thing).

            As long as there is an option to show the text (i.e. it's not completely hidden from users), and the text itself isn't keyword-stuffed or spammy, I can't see a reason why search engines would consider it spam.

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

              Thanks, appreciate your thoughts

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              • Impact of keyword/keyphrases density on header/footer
                GhillC
                GhillC
                0
                3
                32

              • SEO results/title tags/desktop vs. mobile
                Packaging-Group
                Packaging-Group
                0
                4
                292

              • Hi, Is it bad SEO practice to create URLs with #ancor suffix?? lik http://www.diamonds-usa.com/category/diamond-engagement-rings/40-engagement-rings-w-side-stones.aspx#ancor
                ThompsonPaul
                ThompsonPaul
                1
                2
                70

              • SEO Onpage (where I need to put the H1/2/3)?
                MattRoney
                MattRoney
                0
                7
                166

              • https://www.freedomltd.com/stag-weekend/
                henandstag
                henandstag
                0
                3
                109

              • Any idea how Google is doing this? Is it schematic? http://techcrunch.com/2014/02/28/google-adds-full-restaurant-menus-to-its-search-results-pages/
                Ron_McCabe
                Ron_McCabe
                0
                4
                118

              • Is my megamenu negatively impacting my SEO?
                kirube
                kirube
                0
                4
                234

              • My report is showing duplicate titles.. for http://www.mysite.com/ & http://mysite.com
                Fridaythe15th
                Fridaythe15th
                0
                8
                163

              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