Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Working on a blog for a store and surprisingly I haven't used author images in the past. I've come across the following liquid attribute:
article.user.image
I am not seeing anywhere in the staff section where an admin user can manage their avatar image.
The only thing I can think of is the SSO management page, but if that is the case a user can not have unique avatars per store (in the case an admin user has access to many stores).
Is this correct?
Solved! Go to the solution
This is an accepted solution.
Hi @Javy,
It returns the image object of the author of the article. You can upload it at Manage account store.
Refer https://i.imgur.com/WVO8p8Z.png , https://i.imgur.com/Y6pKnvh.png
Hope it helps!
This is an accepted solution.
Hi @Javy,
It returns the image object of the author of the article. You can upload it at Manage account store.
Refer https://i.imgur.com/WVO8p8Z.png , https://i.imgur.com/Y6pKnvh.png
Hope it helps!
@LitExtension thanks for confirming that - so as mentioned earlier, since it is tied to the user's SSO account there is only one image that can be used globally across all Shopify stores.
Hi @Javy,
Yes, it will show the same if the same account. Or you can upload the image in Assets and set the condition to display it, so it will be custom for each store.
Ex:
{%- if article.user == 'ABC' -%}
// show image Assets
{%- else -%}
// show image user
{%- endif -%}
Hope it is clear to you.
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024