Created
November 22, 2021 06:38
-
-
Save dpw1/c66d9be5f0d0785c897fca7361ef7e1a to your computer and use it in GitHub Desktop.
Full width description below images on the Dawn theme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{%- if product.description != blank -%} | |
<div class="product__description-parent"> | |
<h2>Description</h2> | |
<div class="product__description product__description--custom rte"> | |
{{ product.description }} | |
</div> | |
</div> | |
<style> | |
@media (max-width: 749px){ | |
.product__description-parent{ | |
display: none; | |
} | |
} | |
@media (min-width: 750px){ | |
.product__description:not([class*='--custom']){ | |
display: none; | |
} | |
} | |
</style> | |
{%- endif -%} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment