Home › Forums › Support › Adding padding to .inside-article for custom post type This topic has 1 reply, 2 voices, and was last updated 3 years, 5 months ago by David. Viewing 2 posts - 1 through 2 (of 2 total) Author Posts November 14, 2022 at 3:29 am #2414592 Dmitrii Hi there! I’m using the following CSS for my regular posts @media (min-width: 1024px) { .separate-containers.single-post .inside-article { padding: 0px 0px 0px 301px; } } How can I replicate it for a custom post type? I’ve tried applying it to just pages – which works – but I don’t want it to affect other auxiliary pages (about us, contact us, etc.) November 14, 2022 at 4:19 am #2414658 DavidStaff Customer Support Hi there, that CPT has its own body class of: single-wedding-vendors So we can use that in your CSS like so: @media (min-width: 1024px) { .separate-containers:is(.single-post, .single-wedding-vendors) .inside-article { padding: 0px 0px 0px 301px; } } Author Posts Viewing 2 posts - 1 through 2 (of 2 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In