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
-
Does anyone rate CORA SEO Software?
I can't really see any third party reviews of this software. Does anyone rate it?
On-Page Optimization | | AL123al0 -
H1 tag positioning impact
Hello, I am currently working with a dev team to develop a new site. We have designed the title tags to sit below a banner image on each page but the technical team are insisting the h1 title tags must come above the banner for maximum SEO impact. I am sceptical about this, can anybody please shed some light and/or share any up to date resource on this? I have attached a side by side wireframe to illustrate the pages with the h1 tags in both positions. Thank you! HnWcLTx
On-Page Optimization | | Popidev0 -
Phone number for SEO
We have had an interesting question from a client. They have asked if removing their phone number from their website would have an affect on their rankings. Our immediate answer was 'No' but it may affect the Brand, Usability and Customer experience by restricting the methods of contact. This then made us think that perhaps then it could have an effect in the long term. This situation is also complicated by the fact that they do not have a Google Local Plus account for operational, sensitivity reasons (they don't want to openly publicise their address) We believe that there shouldn't be any negative affect but thought we would open a discussion. Thanks in advance for any comments/ideas.
On-Page Optimization | | vital_hike0 -
Can "window.location" javascript on homepage affect seo?
Hi! I need to add a splashpage to my wordpress site. I use "window.location" javascript on the homepage to redirect on the splashpage (controlled by cookie to redirect only for the first access). Can this technique affect the SEO on homepage? Thanks in advance!
On-Page Optimization | | StudioCiteroni0 -
How does a collapsed section affect on page SEO?
A client recently asked me whether a tabbed collapsed section of text that is expanded (i.e. revealed) when clicked, is an OK thing to do without negatively effecting SEO. I told him that for starters, he may want to rethink why he would want to hide the text in the first place (this is not an FAQ type scenario). The reason has to do with the aesthetic of the page. Anyway, aesthetic aside, any thoughts on whether a collapsed (hidden from view) negatively affects on-page SEO? Thanks.
On-Page Optimization | | stephanwb
Stephan0 -
SEO can id and class be used in H1?
Can ID and class be used in my H1 tag. I realize best case would be to change it, but it's going to require a change order from the ecommerce company to fix their sloppy code. Will this hurt seo? Example:
On-Page Optimization | | K-WINTER0 -
SEO for Online Auto Parts Store
I'm currently doing an audit for an online auto parts store and am having a hard time wrapping my head around their duplicate content issue. The current set up is this: The catalogue starts with the user selecting their year of vehicle They then choose their brand (so each of the year pages have listed every single brand of car, creating duplicate content) They then choose their model of car and then the engine And then this takes them to a page listing every type/category of product they sell (so each and every model type/engine size has the exact same content!) This is amounting to literally thousands of pages being seen as duplicates It's a giant mess. Is using rel=canonical the best thing to do? I'm having a hard time seeing a logical way of structuring the site to avoid this issue. Anyone have any ideas?
On-Page Optimization | | ATMOSMarketing560 -
Is an Overflow SEO friendly
Is an "overflow" (scrollbar) seo and Google friendly? I only ask because it hides part of the visible text.
On-Page Optimization | | BradBorst0