Personalized checkout and custom promotions with Shopify Scripts
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
Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025