Can not access LOGO nor any items in BRAND object in LIQUID?

None of these seem to be available in Liquid

https://shopify.dev/api/storefront/unstable/objects/Brand#field-brand-logo

{{ Brand.logo }} // fail
{{ Shop.Brand.logo }} // fail
{{ settings.Brand.logo }} // fail
{{ CheckoutBrandingHeader.logo }} // fail
{{ Shop.CheckoutBrandingHeader.logo }} // fail
{{ settings.CheckoutBrandingHeader.logo }} // fail
{{ sections.header.settings.logo }} // fail

Expected Behavior:

Should be able to ask for the BRAND URL, COLORS or any other BRAND object items within Liquid.

Note, only this seems to work when used only context with a file such as “static-header.liquid”

{{section.settings.logo}} // works, but useless outside the section template

Therefore:

Problem: how can I access the brand objects in LIQUID?

It is {{ shop.brand.logo }}

Indeed it is. lol!

Thanks…

But here is something horrifying…

Then EVERY single one of these items in the documentation has the incorrect syntax, none of them should be “capital” letters, and every single one here is therefore wrong:

https://shopify.dev/api/storefront/unstable/objects/Brand#field-brand-logo

https://shopify.dev/api/storefront/unstable/objects/Shop#field-shop-brand

Is that the case?

Sure seems like the case to me…

Why have documentation if the documentation is wrong? lol

I think it’s the document for API, not for liquid reference :slightly_smiling_face:
All liquid references should be here: https://www.shopify.com/partners/shopify-cheat-sheet

Do you know how to output the full logo CDN url?

{{ shop.brand.logo }} outputs files/my-logo.svg and, if you use the file_url filter, it duplicates the files/ part of the url (e.g. //cdn.shopify.com/s/files/1/0749/2734/1841/files/files/my-logo.svg) because file_url expects just the filename without any path.

My current workaround is:

{{ shop.brand.logo | split: ‘/’ | last | file_url }}

Is there a better way?

Hi,
Let’s use this: {{ shop.brand.logo | img_url: ‘master’ }}
You can replace master (original size) with other size eg: 100x

That worked! Although I used {{ image_url: width: shop.brand.logo.width }} which is the “new” img_url. Thanks!

Crazy. Why in documentation is only brand…