Shopify Code {% if request.path == '/de' %}

ClaudiusSteurer
Shopify Partner
1 0 0

Hello Community,

 

I have the following problem, I have written a custom code for the theme.liquid page which should only apply to the path /de, therefore the command at the very beginning {% if request.path == '/de' %}, if the path does not correspond to /de, the normal standard code of shopify should apply with the command {% else %}.
This works without any problems.

 

But now I would like to add to the code that this self-written code only applies to a pixel size of the user screen above 1024 pixels, and if the device is below 1024 pixels, the normal shopify code should also apply. However, this command should also only apply in request.path == '/de'.

I would be very happy if someone could suggest a solution.

 

 

With kind regards



Replies 0 (0)