Blog template in DAWN theme - lower image size and widen main body text area?

cdgerard
Shopify Partner
43 2 3

Hello,

How can I lower the image size and widen the body text space in the blog templatet in DAWN theme?

Currently the image is huge and the main body text is super narrow.

 

 

 

Screenshot 2024-04-25 144157.png

Replies 2 (2)

theycallmemakka
Shopify Partner
1477 336 360

Hi @cdgerard 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file
4) Add the following code just above tag </body>

{% if article %}
<style>
@media screen and (min-width: 990px) {
    .page-width--narrow {
        max-width: 80%;
        padding: 0;
    }
    .article-template__hero-container {
        max-height: 360px;
        overflow: hidden;
        height: 360px;
    }
    
    .article-template__hero-adapt.media {
        width: 100%;
        height: 100%;
        padding-bottom: 0px!important;
    }
    
    .article-template__hero-container img {
        object-fit: cover;
        object-position: top;
    }
}
</style>
{% endif %}

 

If you require further help to optimize your store, please don’t hesitate to reach out. If you find this information useful, a Like would be greatly appreciated. And if this solves the problem, please Mark it as Solution!

 

Best Regards,
Makka

Buy me a Coffee


Enjoy Shopify for $1. Sign up now


For quick response - Message Me


Ping me at: theycallmemakka@gmail.com

cdgerard
Shopify Partner
43 2 3

Thanks but this solution actually cuts the image off by more than half. 

 

 

Screenshot 2024-04-25 173521.png