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... 
Browse Questions
Explore more categories
- 
		
		Moz ToolsChat with the community about the Moz tools. 
- 
		
		SEO TacticsDiscuss the SEO process with fellow marketers 
- 
		
		CommunityDiscuss industry events, jobs, and news! 
- 
		
		Digital MarketingChat about tactics outside of SEO 
- 
		
		Research & TrendsDive into research and trends in the search industry. 
- 
		
		SupportConnect on product support and feature requests. 
Related Questions
- 
		
		
		
		
		
		Why home Page is not showing showing in search results?
 The USA Glitz I search the exact title & keyword but still its not showing though there is no related websites in this term. What can i do ? What kind of strategy needs to follow ? Kindly help me out . Thanks 😢 On-Page Optimization | | henrichjrr4201
- 
		
		
		
		
		
		Is Wix still terrible for SEO?
 In Australia, I hear it over and over again that Wix is literally the worst site builder you can use due to it's poor site build for SEO. Has anyone here got some tangible reasons for why this is? As I am constantly getting asked this by clients who are using Wix and want me to help with their SEO. On-Page Optimization | | UndergrndMarketing0
- 
		
		
		
		
		
		Does homepage SEO exist at all?
 hi Just read a Yoast article explaining that the homepage should never be optimized for a specific keyword and should only be optimized for its business or brand name. i have a large site that I'd like to rank (or increase traffic for as I know people get irritated with that term now) for 'Campervan hire'. It has plenty of sub pages going after 'Campervan hire 'location'' for example. it makes sense to me for the homepage keyword - my core keyword - to be 'Campervan hire' and for the homepage to be optimised for this. However, the article I've just read (https://yoast.com/homepage-seo/) suggests a separate page for this keyword. What are your thoughts pls?? thanks On-Page Optimization | | CamperConnect142
- 
		
		
		
		
		
		Best SEO experts you know in India Chennai
 Best SEO experts you know in India Chennai. Does anyone know of few companies who deal with SEO to help optimize keywords? and get more traffic for our website? thank you On-Page Optimization | | bsharath0
- 
		
		
		
		
		
		Does css float affect SEO?
 It is generally believed that the closer the content is to the top of the page, the better it is for SEO. If that's incorrect, please let me know. I have a 2 column site where the left menu is navigation and right side is content. Obviously, the left menu appears in the code before the content does, but I can flip them around via css float. If I do that, the content will appear on the left visually, even though in the code it still comes after the left side navigation. Do either positions affect seo? On-Page Optimization | | cmp1010
- 
		
		
		
		
		
		SEO without CMS: Impossible?
 Is WordPress the ONLY way to go for an SEO friendly website? Any REAL reason for using anything but? On-Page Optimization | | EliteErikSEO0
- 
		
		
		
		
		
		Is .PW domain is good for SEO?
 I want to register .PW domain which has recently got live to register. I am in doubt should it is good for SEO or not. On-Page Optimization | | semmediapvtltd0
 
			
		 
			
		 
			
		 
			
		 
					
				 
					
				 
					
				 
					
				 
					
				 
					
				 
					
				