What's your biggest current challenge? Have your say in Community Polls along the right column.

Display different banner using request.host for 3 domains

Display different banner using request.host for 3 domains

aresi
Visitor
1 0 0

I am trying to display different banners in 3 domains using {{ request.host }}

e.g. myshop.com, eu.myshop.com, us.myshop.com

I've refered to this https://shopify.dev/api/liquid/objects/request and is able to display banner for 2 domains.

However, there is no reference to code for 3 domains, can anyone help with it?

Replies 0 (0)