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.
How best to wrap anchor tags around a product tile
- 
					
					
					
					
 Hi Say I am on a Product Listing page on ecommerce website and I have product tiles which contain images and name/price underneath them. Is it better to wrap the whole product tile (image and name/price) in an anchor tag (linking to their product page) or to wrap the image and the name/price underneath in anchor tags separately (linking to the product page) ? thanks 
- 
					
					
					
					
 To wrap anchor tags around a product, you'll typically want to create a hyperlink that, when clicked, leads to a page or resource related to the product 
- 
					
					
					
					
 A possible answer to this issue could be: "To effectively wrap anchor tags around a product tile, you should ensure that the anchor tag encloses the entire content of the product tile. This can be done by placing the opening <a> tag at the start of the product tile and the closing </a> tag at the end of it. Here’s a step-by-step approach: Start with the opening anchor tag before any of the product tile content. Add the href attribute to the anchor tag with the URL you want the user to be directed to when they click the product tile. Ensure that the anchor tag has display block (display: block;) style applied to it, so it takes up the full tile space. This is important for making the whole area clickable. Place all the HTML that makes up the product tile between the opening and closing anchor tags. This includes the image, product title, price, and any other information you wish to display. Close the anchor tag after all the product tile content. 
 Remember to style the anchor tag to remove any default styling like underlines (text-decoration: none;) and ensure it inherits text colors (color: inherit;), so it blends seamlessly with your product tile design.Test the implementation across different browsers and devices to ensure the clickable area covers the entire tile consistently." By wrapping the entire tile in an anchor tag and ensuring the tag is displayed as a block-level element, users will be able to click anywhere on the tile to navigate to the product's detail page. 
- 
					
					
					
					
 To wrap anchor tags around a product tile effectively: Use a parent container for the product tile. 
 Place the anchor tag within the container.
 Ensure the anchor tag covers the entire product tile for accessibility.
 Set the anchor's href attribute to the product's page URL.
 This approach allows users to click anywhere on the product tile to access more details, improving user experience.
- 
					
					
					
					
 It's generally better to wrap the whole product tile, including the image and name/price, in a single anchor tag. This approach provides a larger clickable area for users, improving the overall user experience and making it easier for them to access the product details. 
 .
 .
 .
 ( IT Business Analyst ) (
- 
					
					
					
					
 It's generally best to wrap the entire product tile in a single anchor tag for a larger clickable area and improved user experience on e-commerce product listings. 
- 
					
					
					
					
 Hi, In most cases, it's better to wrap the whole product tile (image and name/price) in a single anchor tag linking to the product page. This approach provides a larger clickable area and offers a better user experience, as visitors can click anywhere within the tile to access the product details. It simplifies navigation and ensures consistency in user expectations when interacting with product listings on an e-commerce website. 
 .
 .
 .
 ( Diploma Courses In Canada ) (Canada PR) (PMP Exam Prep)
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
- 
		
		
		
		
		
		Unsolved Using NoIndex Tag instead of 410 Gone Code on Discontinued products?
 Hello everyone, I am very new to SEO and I wanted to get some input & second opinions on a workaround I am planning to implement on our Shopify store. Any suggestions, thoughts, or insight you have are welcome & appreciated! For those who aren't aware, Shopify as a platform doesn't allow us to send a 410 Gone Code/Error under any circumstance. When you delete or archive a product/page, it becomes unavailable on the storefront. Unfortunately, the only thing Shopify natively allows me to do is set up a 301 redirect. So when we are forced to discontinue a product, customers currently get a 404 error when trying to go to that old URL. My planned workaround is to automatically detect when a product has been discontinued and add the NoIndex meta tag to the product page. The product page will stay up but be unavailable for purchase. I am also adjusting the LD+JSON to list the products availability as Discontinued instead of InStock/OutOfStock. Technical SEO | | BakeryTech
 Then I let the page sit for a few months so that crawlers have a chance to recrawl and remove the page from their indexes. I think that is how that works?
 Once 3 or 6 months have passed, I plan on archiving the product followed by setting up a 301 redirect pointing to our internal search results page. The redirect will send the to search with a query aimed towards similar products. That should prevent people with open tabs, bookmarks and direct links to that page from receiving a 404 error. I do have Google Search Console setup and integrated with our site, but manually telling google to remove a page obviously only impacts their index. Will this work the way I think it will?
 Will search engines remove the page from their indexes if I add the NoIndex meta tag after they have already been index?
 Is there a better way I should implement this? P.S. For those wondering why I am not disallowing the page URL to the Robots.txt, Shopify won't allow me to call collection or product data from within the template that assembles the Robots.txt. So I can't automatically add product URLs to the list.0
- 
		
		
		
		
		
		How to index e-commerce marketplace product pages
 Hello! We are an online marketplace that submitted our sitemap through Google Search Console 2 weeks ago. Although the sitemap has been submitted successfully, out of ~10000 links (we have ~10000 product pages), we only have 25 that have been indexed. I've attached images of the reasons given for not indexing the platform. gsc-dashboard-1 gsc-dashboard-2 How would we go about fixing this? Technical SEO | | fbcosta0
- 
		
		
		
		
		
		Collections or blog posts for Shopify ecommerce seo?
 Hi, hope you guys can help as I am going down a rabbit hole with this one! We have a solid-ranking sports nutrition site and are building a new SEO keyword strategy on our Shopify built store. We are using collections (categories) for much of the key product-based seo. This is because, as we understand it, Google prioritises collection/category pages over product pages. Should we then build additional collection pages to rank for secondary product search terms that could fit a collection page structure (eg 'vegan sports nutrition'), or should we use blog posts to do this? We have a quality blog with good unique content and reasonable domain authority so both options are open to us. But while the collection/category option may be best for SEO, too many collections/categories could upset our UX. We have a very small product range (10 products) so want to keep navigation fast and easy. Our 7 lead keyword collection pages do this already. More run the risk of upsetting ease/speed of site navigation. On the other hand, conversion rate from collection pages is historically much better than blog pages. We have made major technical upgrades to the blog to improve this but these are yet to be tested in anger. So at the heart of it all - do you guys recommend favouring blog posts or collection/category pages for secondary high sales intent keywords? All help gratefully received - thanks! SEO Tactics | | WP332
- 
		
		
		
		
		
		Add content as blog post or to product pages?
 Hi, We have around 40 products which we can produce plenty of in-depth and detailed "how to"-type pieces of content for. Our current plan is to produce a "How to make" style post for each as a long blog post, then link that to the product page. There's probably half a dozen or more of these kind of blog posts that we could do for each product. The reason why we planned on doing it like this is that it would give us plenty of extra pages (blog posts) on their own URL which can be indexed and rank for long tail keywords, but also that we can mention these posts in our newsletter. It'd give people a new page full of specific content that they can read instead of us having to say "Hey! We've updated our product page for X!", which seems a little pointless. Most of the products we sell don't get very many searches themselves; Most get a couple dozen and the odd few get 100-300 each, while one gets more than 2,000 per month. The products don't get many searches as it's a relatively unknown niche when it comes to details, but searches for the "categories" these products are in are very well known (Some broad terms that cover the niche get more than 30,000+ searches a month in the UK and 100,000+ world wide) [Exact]. On-Page Optimization | | azu25
 Regarding the one product with more than 2,000 searches; This keyword is both the name of the product and also a name for the category page. Many of our competitors have just one of these products, whereas we're one of the first to have more than 6 variations of this product, thus the category page is acting like our other product pages and the information you would usually find on our product pages, is on the category page for just this product. I'm still leaning towards creating each piece of content as it's own blog post which links to the product pages, while the product pages link to the relevant blog posts, but i'm starting to think that it may be be better to put all the content on the product pages themselves). The only problem with this is that it cuts out on more than 200 very indepth and long blog posts (which due to the amount of content, videos and potentially dozens of high resolution images may slow down the loading of the product pages). From what I can see, here are the pros and cons: Pro (For blog posts):
 1. More than 200 blog posts (potentially 1000+ words each with dozens of photos and potentially a video)..
 2. More pages to crawl, index and rank..
 3. More pages to post on social media..
 4. Able to comment about the posts in the newsletter - Sounds more unique than "We've just updated this product page"..
 5. Commenting is available on blog posts, whereas it is not on product pages..
 6. So much information could slow down the loading of product pages significantly..
 7. Some products are very similar (ie, the same product but "better quality" - Difficult to explain without giving the niche away, which i'd prefer not to do ATM) and this would mean the same content isn't on multiple pages.
 8. By my understanding, this would be better for Google Authorship/Publishership.. Con (Against blog posts. For extended product pages):
 1. Customers have all information in one place and don't have to click on a "Related Blog posts" tab..
 2. More content means better ability to rank for product related keywords (All but a few receive very few searches per month, but the niche is exploding at an amazing rate at the moment)..
 3. Very little chance of a blog post out-ranking the related product page for keywords.. I've run out of ideas for the 'Con' side of things, but that's why I'd like opinions from someone here if possible. I'd really appreciate any and all input, Thanks! [EDIT]:
 I should add that there will be a small "How to make" style section on product pages anyway, which covers the most common step by step instructions. In the content we planned for blog posts, we'd explore the regular method in greater detail and several other methods in good detail. Our products can be "made" in several different ways which each result in a unique end result (some people may prefer it one way than another, so we want to cover every possible method), effectively meaning that there's an almost unlimited amount of content we could write.
 In fact, you could probably think of the blog posts as more of "an ultimate guide to X" instead of simply "How to X"...0
- 
		
		
		
		
		
		Fewer keywords in title tag?
 Hello, I have a title tag that includes three keywords and has a total of 59 characters. The third keyword is not very important. If I eliminated the third keyword, leaving the first two (for a total of 48 characters), would the ranking value of the first two keywords increase? Does including the third keyword dilute the value of the first two? Thank you! On-Page Optimization | | nyc-seo0
- 
		
		
		
		
		
		Prices in title tag
 At our ecommerce site adwords ads generally perform a lot better when the product price is included in the ad title. Does anyone here have any experience and data on CTR with including product prices in title tags of product / category pages? On-Page Optimization | | ese0
- 
		
		
		
		
		
		Hey guys! I was looking at adding the H1 tag lower on the page than the H2 tag because I want the top bit to be a call to action. Is this proper practice?
 Hey guys! I was looking at adding the H1 tag lower on the page than the H2 tag because I want the top bit to be a call to action. Is this proper practice? On-Page Optimization | | Web3Marketing870
- 
		
		
		
		
		
		Best Practice for Deleting Pages
 What is the best SEO practice for deleting pages? We have a section in our website with Employee bios, and when the employee leaves we need to remove their page. How should we do this? On-Page Optimization | | Trupanion0
 
			
		 
			
		 
			
		 
			
		 
			
		 
			
		 
			
		 
					
				 
					
				 
					
				 
					
				 
					
				 
					
				