Boost Your Shopify Product Pages: Dynamic Brand Logos with Metaobjects

Hey everyone! As a Shopify migration expert and someone who spends a lot of time digging through the community forums, I often see recurring questions that really highlight common pain points for store owners. One topic that recently popped up, and offered a fantastic example of a modern Shopify solution, was all about displaying brand logos on product pages.

Our friend BGH kicked off a thread with a challenge many of you might relate to: they manage over 100 product brands on their website. They were already using a metafield for the brand name, but wanted a slick, automated way to display each brand's logo (with a link to its dedicated brand page) directly on the corresponding product pages. BGH had explored various "shop by brand" apps, but none offered the specific product page display they needed. They were considering using two separate metafields – one for the image, one for the link – but rightly wondered if there was a more efficient and automated approach, especially since brands in their industry "come and go."

The Metafield Dilemma: Why Two Isn't Always Better Than One

BGH's initial thought of using two metafields (one for the logo image, one for the brand page URL) isn't inherently wrong. It would certainly work. However, when you're dealing with 100+ brands, and those brands are constantly changing, managing two separate pieces of data for each brand across potentially hundreds or thousands of products can become a real headache. Imagine updating a brand's logo or URL: you'd have to go through every single product associated with that brand. Not ideal, right?

This is precisely where the Shopify community shines, and a brilliant suggestion came from Laza_Binaery, pointing BGH (and all of us!) toward a much more elegant and scalable solution: Shopify Metaobjects.

The "Aha!" Moment: Embracing Shopify Metaobjects

Laza_Binaery's advice was spot on. Instead of treating brand logos and links as disparate pieces of data attached to each product, Metaobjects allow you to define a "Brand" as its own distinct entity. Think of it like creating a mini-database for all your brands, where each brand has its own entry, complete with all its relevant information.

Here's why Metaobjects are a game-changer for this scenario:

  • Centralized Data: Each brand (e.g., "Nike," "Adidas," "Puma") becomes a single Metaobject entry. Within that entry, you can store its name, logo image, a short description, and its dedicated URL.
  • Effortless Management: If Nike updates its logo or changes its brand page URL, you update it ONCE in the Nike Metaobject entry. That change then automatically reflects across every product page that references the Nike brand. Automation at its finest!
  • Scalability: Whether you have 10 brands or 1000, the management process remains streamlined.
  • Dedicated Brand Pages: As Laza_Binaery also noted, you can create Metaobject templates, giving each brand its own dedicated, SEO-friendly page – a fantastic bonus for discoverability and customer experience.

Step-by-Step: Setting Up Brand Logos with Metaobjects

Let's walk through how you'd set this up in your Shopify admin. It's easier than you might think!

1. Create a "Brand" Metaobject Definition

First, you need to define what a "Brand" Metaobject should contain.

  1. Go to your Shopify Admin > Settings > Custom data.
  2. Under "Metaobjects," click "Add definition."
  3. Name it something like "Brand" (plural: "Brands").
  4. Add the following fields:
    • Name: Text (single line) – This will be the brand's official name.
    • Logo: File (select "Images" as accepted file types) – For the brand's logo.
    • Description: Rich text – A short blurb about the brand (optional, but good for dedicated brand pages).
    • Brand URL: URL – The link to the brand's dedicated page.

This screenshot from Laza_Binaery shows the Metaobject definition setup:

Screenshot of Metaobject definition setup

2. Add Your Brand Entries (Metaobjects)

Now, create an entry for each of your brands using the definition you just made.

  1. In your Shopify Admin, go to Content > Metaobjects.
  2. Click "Add entry."
  3. Select your "Brand" definition.
  4. Fill in the details for each brand: name, upload its logo, add a description, and paste its URL.

Here's what adding an individual brand entry looks like:

Screenshot of adding a brand Metaobject entry

3. Connect Brands to Products Using a Product Metafield

Finally, you need to tell your products which brand (or brands!) they belong to.

  1. Go to your Shopify Admin > Settings > Custom data.
  2. Under "Products," click "Add definition."
  3. Name it something like "Product Brands."
  4. Choose "Metaobject" as the content type.
  5. Select your "Brand" Metaobject definition.
  6. Crucially, tick the box for "List of entries" if a product can belong to multiple brands (or if you just want the flexibility).

Laza_Binaery's screenshot shows this exact setup:

Screenshot of product metafield linking to brand metaobject

Now, when you edit a product, you'll see your new "Product Brands" metafield. You can simply select the relevant brand(s) from your list of Metaobject entries. Super easy!

4. Display on Your Product Page (Theme Customization)

Once your data is linked, you need to display it. This part usually involves a bit of theme customization, but it's often doable through the theme editor or with a small Liquid code snippet.

In your theme customizer, you might be able to add a "Custom Liquid" section or a "Metafield" block to your product page template and then link it to your newly created product metafield. If you're comfortable with code, you'd access the data like this (assuming your product metafield is named product_brands and it's a list):

{% if product.metafields.custom.product_brands.size > 0 %}
  {% assign brand = product.metafields.custom.product_brands.first %}
  
    {{ brand.name.value }} logo
  
{% endif %}

This snippet would display the logo of the first brand assigned to the product, linking it to the brand's URL. You can adjust it to display multiple brands or format it as needed.

Beyond the Product Page: Dedicated Brand Pages

One last awesome benefit Laza_Binaery mentioned: you can create dedicated pages for each brand! Shopify allows you to build templates for Metaobjects. This means you can design a "Brand Page" template that automatically pulls in the brand's logo, description, and perhaps even a list of all products from that brand. This is fantastic for SEO and providing a richer browsing experience for your customers.

So, there you have it! What started as a simple question in the community led to a powerful, scalable solution using Metaobjects. If you're managing a store with many brands, or any kind of reusable data, taking a page out of this discussion's book and leveraging Metaobjects is definitely the way to go. It saves you time, reduces errors, and makes your store much more robust for the long haul.

Share:

Use cases

Explore use cases

Agencies, store owners, enterprise — find the migration path that fits.

Explore use cases