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)
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
-
Over Optimised Magento Pages
We are working on a clients Magento site and we've added new copy which has a decent keyword density which is in line with best practice. When we run it through Moz we are getting a Key Word Stuffing alert saying the page has 27 keywords, where we can only see about 11. This is the page https://www.greatbeanbags.com/bean-bag-cushions The client is pushing back saying the page must have already been optimised before as our new copy has triggered the stuffing alert. But my guess is the page was already stuffed but buy some Magento code we can't see. Any ideas? #magento #Keyworddensity
Content Development | | Marketing_Optimist0 -
Requiring customer agree to shipping terms at checkout
I work for an ecommerce company that has many of its shipments go by LTL freight. Our customer service team has issues with a few customers per month that aren't equipped to receive freight shipments which leads to returns and other issues. In an effort to better inform our customers, the customer service team is requesting that we add a checkbox to the checkout that requires customers to agree to our shipping and returns policy, including a link to the policy page. I am wondering how concerned people here would be that requiring the customer to check a box agreeing to those terms would lead to more customers abandoning during the checkout process. Or do you think it's not a concern? Thanks for your thoughts.
Conversion Rate Optimization | | Kyle_M0 -
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 -
Title Tags not Displaying in SERPs Correctly
We have two websites that are very similar. One is .co.nz and the other is a .com.au. I've noticed some of our page titles are displaying differently in SERPs even though the title tags are formatted the same:e.g. The title: "PC Games | at Mighty Ape Australia" shows as: "PC Games | at Mighty Ape Australia - MightyApe.com.au"It's showing with extra text "- MightyApe.com.au". Whereas the NZ result for the title "PC Games | at Mighty Ape NZ" is fine i.e. displays as: "PC Games | at Mighty Ape NZ"Does anyone who why this might be happening?P.S. It's odd that in the Australian results the site links don't show up even though the sites are structured the same.
On-Page Optimization | | kevinliao0 -
Does having more products in a category than others help with ranking that page with a particular keyword like iphone cases. We have thousands of products and wondered if it would hellp these all being on the website.
does having more products in a category than other websites help with ranking that page with a particular keyword like iphone cases. We have thousands of products and wondered if it would help these all being on the website.
On-Page Optimization | | Casefun0 -
The Best Way to Market a Blog Post?
So . . . I've written a beautiful blog (or video or podcast or whatever . . . just take my word for it that it will be nominated for an Oscar, Webby, or Pulitzer very soon). What's the best way to get the word out about it? Let me rephrase that. I know I should tweet, post on Facebook, social networks etc cetera. My real question is, should I link to the home page (which is where my blog is located . . . it would show up there) or should I link to the specific page of the full blog post? Seems to me, linking to the blog post directly gives me a better chance at tracking the success of the article in generating interest and traffic, but I was assuming linking to the home page helped pump up the importance of my overall site? I still consider myself an SEO Noob so be sure to speak slowly and not use big words. Consider drawing pictures.
On-Page Optimization | | damon12120 -
Title Tag, Are the Keywords Plucked out of it?
We are working on redoing our site and I read the article from rand about how to properly format title tags, here http://www.seomoz.org/blog/tactical-seo-how-many-termsphrases-should-i-target-on-a-single-page He showed how he could take 6 keywords and use them all in the title tag: The title Tag:
On-Page Optimization | | donford
Ted Baker London - Men's Clothing Collections 2005-2008 | Sartorialmoz.org The keywords:
Ted Baker
Ted Baker London
Ted Baker Clothing
Ted Baker Mens
Ted Baker Mens Clothing
Ted Baker Mens Collection So what I am wondering is the keyword Ted Baker Mens Collection actually getting found. In this case we are dealing with a contraction (men's) and a plural form of a keyword (collections). Is it plucked out from the title tag above?
Like this? Ted Baker London - Men's Clothing Collections 2005-2008 | Sartorialmoz.org In his article he goes on to say the biggest mistake he sees is, unfortunately exactly the way our site was built 6 years ago. That is people doing this: Ted Baker, Ted Baker London, Ted Baker Clothing, Ted Baker Men's Clothing, Ted Baker Clothing Collection - Buy Online Now at Manamialameseo.com Our site does just that, while we are PR 4 and get decent traffic for the business we are in, we are doing a huge update with new pages, information, and most importantly trying to get all the SEO the best as possible. I want to make sure before we make these what could be huge impact changes that search engines do in fact Pluck the keywords from the title tag, and they are not required to be together. Thank you for any thoughts, answers and most importantly your time. Example following this formula: Our Top 3 Keywords:
Molded Rubber
Rubber Molding
Custom Molded Rubber Our Old way:
Title: Custom Molded Rubber, Rubber Molding, Molded Rubber
The new way:
Title: Custom Molded Rubber - Molding Services | OurSite.com0 -
Same H1 tag in header across entire site
Should I have the same H1 tag in my header through out my entire site? Or is this considered to be self canalization for my main keywords. For example right now I have an H1 tag with my main targeted keywords on every page on my site, even if the pages content doesn't necessarily match the keywords in the H1 tag.
On-Page Optimization | | TRICORSystems0