tuanphan Posted November 29 Posted November 29 These CSS code will help you change aspect ratio on specific blog page, specific blog post... #1. Specific Blog Page First, find Blog Page ID. In my example, it is: #collection-6677756d03a4f15ba27ce9d8 Next, use this CSS code #collection-6677756d03a4f15ba27ce9d8 article.blog-item .image-wrapper { padding-bottom: 75% !important; } #2. Specific Blog Page (Desktop Only) If you want the code affects Desktop Only, you can use this CSS code @media screen and (min-width:768px) { #collection-6677756d03a4f15ba27ce9d8 article.blog-item .image-wrapper { padding-bottom: 75% !important; } } #3. Specific Blog Page (Mobile Only) If you want the code affects Mobile only, use this CSS code @media screen and (max-width:767px) { #collection-6677756d03a4f15ba27ce9d8 article.blog-item .image-wrapper { padding-bottom: 75% !important; } } #4. Specific Blog Item First, you need to find blog item url. In my example, it is: /blog-2-1/the-mountai-bike Next, use this CSS code article.blog-item .image-wrapper[href="/blog-2-1/the-mountai-bike"] { padding-bottom: 120% !important; } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment