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.
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
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
@Kcab_pea Hi!
[quote=“Kcab_pea”]
and where exactly should I place this code “{% if request.host == ‘sub-domain-url.com’ %} code {% endif %}”?
[/quote]
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.
@Deluxe-Foladun Please can I have your email address ?
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