RTL

RTL

Kcab_pea
Visitor
3 0 0

Hello!
I'm having issue with RTL code, How can I input a code for my sub-domain(RTL), without it affecting my main domain(LTR), Thanks in advance.

Replies 5 (5)

Deluxe-Foladun
Shopify Partner
57 9 12

Hi @Kcab_pea,

Foladun here from the Deluxe App team. 👋

You can use Liquid conditional logic like this:

 

 

{% if request.host == 'sub-domain-url.com' %}
  code 
{% endif %}

 

 

 

Make sure to enter only the domain (e.g., sub-domain-url.com) without the www or http/https protocol.

This ensures the code runs only on the subdomain.


Hope that helps!

Best regards,

Foladun | Deluxe: Account & Loyalty 

• Boost engagement and sales with Customer Account Deluxe: a Modern Customer Page with Loyalty, Wishlist, and Social Login (Free plan available)


• Drive more revenue, increases user retention and repeat purchases, with simple one-click installation.

Kcab_pea
Visitor
3 0 0

Thanks Foladun. However, Do I need to still add the previous code? and where exactly should I place this code "{% if request.host == 'sub-domain-url.com' %} code {% endif %}"? Thanks 

Deluxe-Foladun
Shopify Partner
57 9 12

@Kcab_pea Hi!



@Kcab_pea wrote:

and where exactly should I place this code "{% if request.host == 'sub-domain-url.com' %} code {% endif %}"?


You can use this code in any Liquid file where you want to add something just for a specific domain or subdomain. Can you tell me a bit more about what you're trying to do? That way, I can give you better instructions.


• Boost engagement and sales with Customer Account Deluxe: a Modern Customer Page with Loyalty, Wishlist, and Social Login (Free plan available)


• Drive more revenue, increases user retention and repeat purchases, with simple one-click installation.

Kcab_pea
Visitor
3 0 0

@Deluxe-Foladun Please can I have your email address ?

Deluxe-Foladun
Shopify Partner
57 9 12

@Kcab_pea 

Feel free to send me a private message if you'd like to discuss this further.
My contact details are included in the signature of my replies.

Let me know if you need more assistance!

 

Best regards,

Foladun | Deluxe: Account & Loyalty

• Boost engagement and sales with Customer Account Deluxe: a Modern Customer Page with Loyalty, Wishlist, and Social Login (Free plan available)


• Drive more revenue, increases user retention and repeat purchases, with simple one-click installation.