Moz Q&A is closed.
After more than 13 years, and tens of thousands of questions, Moz Q&A closed on 12th December 2024. Whilst we’re not completely removing the content - many posts will still be possible to view - we have locked both new posts and new replies. More details here.
Does show/hide element with javascript impact SEO
-
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?
-
Thanks, appreciate your thoughts
-
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.
-
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.
-
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...
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Are Wildcard Subdomain Hurting my SEO?
I have some sites with a lot of categories (category, sub-category, sub-subcategory) and locations (country, state/territory, city). To avoid listing pages really deep in my hierarchy I used wildcard subdomains for the locations, but lately I have been told that might be hurting my overall SEO efforts. I have a lot of URLs like https://city-state-country.example.com on one side of the domain and example.com/category/subcategory/subsubcategory on the other. In the middle you see stuff like city-state-country.example.com/category/subcategory/subsubcategory and everything in between. Would I be better off moving the locations to the right side of the domain name? Then you might find stuff like example.com/country/state/city/category/subcategory/subsubcategory and everything in between. I think I could do the new rewrite rules fairly easily since every country slug is just two characters long.
On-Page Optimization | | PostAlmostAnything0 -
Affect of ™ and ® in title for SEO
I am looking at adding the trademark and rights reserved symbols to some of my titles. I think this might help with click through rate. From what I have found, this shouldn't have an affect on SEO unless it makes the title too long. Is this correct? Stephen
On-Page Optimization | | stephen.volker1 -
Do WooCommerce product tags effect SEO?
I'm just curious if I need these product tags and if they impact in any way at all SEO? - whether that be positively or negatively. on1iRin
On-Page Optimization | | xdunningx0 -
Review markup not showing up in SERP anymore
Hi all, I have been collecting reviews for a little while now. Ofcourse im hoping to cross the 150 reviews border soon 🙂 But i also added the review markup to my website to show up in organic results. This was working fine for a while. I did not added the markup to my homepage. But now for somehow google is not showing this review markup anymore in search results. So i decided to give the company that is hosting the review tool (google partner also) a call. The informed me that they had a lot of calls and e-mails since 2 weeks from their customers. All with the same problem that review markup is not used in search results anymore. Anyone else had this, or know about this issue?
On-Page Optimization | | J05B0 -
Does the link title attribute benefit seo?
Hello, Anyone could tell me the benefit SEO of link title attribute. Is **Link Title **ranking factor? Thanks
On-Page Optimization | | JohnHuynh0 -
State Abbreviations and/or Fully Spelled Out?
Should State names be abbreviated and/or fully spelled out in title tags, meta descriptions and body content? Does Google know that VT = Vermont?
On-Page Optimization | | lbohen0 -
Does keyword at the very front of meta description have impact?
I know that it is important to have your primary keyword target as the first word or two words of your title tag. But what about your meta description tag? does it matter where they keyword is in the description tag? I see a lot of other sites stuffing their keywords right at the front of the description tag and it looks somewhat unnatural. What's your take? do you put the primary keyword as the first word or two words of your description tag?
On-Page Optimization | | adriandg0 -
My nofollow link is showing as a 302\. Is this OK?
My nofollow link is showing as a 302. Is this OK? Not looking to pass any juice along but don't want to be penalized either. Thanks Buhrly
On-Page Optimization | | Buhrly0