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 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 -
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 -
Shopify SEO - Collection or Blog post for ecomm seo?
Hi Moz folks, would love your thoughts on benefits of Shopify collection pages v blog posts for ranking secondary shopping keywords not suitable for existing shop pages - all help gratefully received, we are going down a rabbit hole on this one and need some sanity! So, we’re updating our site which already has a reasonable seo foundation and are looking to rank better for key shopping search keywords in our space (d2c sports nutrition). My question is should we prioritise store collection pages (category pages in Shopify terms) or blog posts for some of the main keywords not already covered by our core in-store collections/categories? Priority keywords already covered are things like protein powders, protein bars, energy drinks, etc. As context, we have a small product catalogue (10 products) and for easy navigation on site have these grouped into 7 collections/categories in the main menu and available from the homepage. All are quality high volume and high intent shopping keywords for our business. The secondary terms we are now looking to add content for are things like marathon nutrition, vegan sports nutrition, etc so now need to choose if we create product collection pages for these, or use blog posts to do the work. The advantage of collections, we believe, is that Google is likely to prioritise these in search. The disadvantage from a UX point of view is that more categories in store could make our simple and clear product range (10 products only) look complex or repetitive. Conversely, a blog post removes any UX confusion with too many categories, but we have a conversion rate issue with our blog. It performs well in search, but conversions are poor. We have addressed this with a new keyword targeting strategy and blog customisation, but we have yet to test this so while in theory it should work well, we do not know for certain. In summary: we want to rank key shopping keywords beyond our core ones we have - would you advise we use blog posts or product collection pages? All help gratefully received - thanks! Warren
SEO Tactics | | WP330 -
Branded Product Dropping from 1st position. Why?
Hi All, I have a branded product that's always ranked 1st. It's a popular product which attracts the majority of our website's traffic. Now it's suddenly dropped from 1st to 20th. Can anyone advise me why this has happened? I've made no radical changes in the last month. keyword: Wattbike Atom Url:https://wattbike.com/gb/product/atom atom
On-Page Optimization | | WattbikeSEO0 -
How to Manage Comparison products website
Hi Mozzers I have been Working on a Comparison Website ; Where We are comparing Single products to many other Products with same specs. E.G : Product A vs Product B and Product A vs Product C ? How We can manage it So that WE donot have duplicate Content issues. Remember: Products are digital so cannot change much Content in there.
On-Page Optimization | | Asjad0 -
Number of Words Product Pages
Hello, Can you give me some examples of how many words you use for product pages? I know it's going to vary and that quality is more important than number of words, but what's been optimal for you and why?
On-Page Optimization | | BobGW0 -
Curious meta-tag
Has anyone met this meta tag? <meta name="ranking" content="Top10, Page=1" /> I imagine it has no effect but I'm curios where did it came from, i saw it on many sites
On-Page Optimization | | seo.academy0