New Brand section - access content via liquid variables?

We build custom themes for our clients.

In the latest update to shopify, there’s a new BRAND section in the settings.

There’s a helpfile about what these are here: https://help.shopify.com/en/manual/promoting-marketing/managing-brand-assets

QUESTION OF THE DAY:

Can I / How do I reference these items in my theme? Are they available as liquid variables?

For example - It’d be nice to reference be able to insert {{ brand.logo }} or {{ brand.logo.square }} in my theme - rather than having someone add the logo via the customizer.

I can’t find anything on shopify.dev, nor any other info more than the helpfile above.

Hi @SamFP ,

It will automatically show up at the theme logo so you don’t need to add any code for it. Refer:

It will support the latest versions of the theme, if you use previous versions you can connect it here:

Hope it helps!

Thanks. This answers part of my question - this new button is the “Dynamic Sources” function (help file here). Right now, you go to an existing field, and say “go get this source” and pick the item containing your data.

As far as I can tell, this works on image fields, but doesn’t yet work on the url fields. So, you can link the logo, but you can’t yet link the social media fields.

I talked to shopify support about this - and theoretically, all these brand items are metafields. They just haven’t written documentation for it yet.

As a dev, I want the option to skip the customizer field entirely, and just hard code in something like “if the brand.social.facebook metafield is not blank, insert facebook link here”

1 Like

Hi @SamFP ,

It’s just one part, when you use the brand logo, it will sync all instead of you adding code for each, like you can install Dawn 6.0, the brand will be added to the logo by default, instead of you having to select display.

If it helped you solve your issue, please mark it as a solution. Thank you and good luck.