Site logo

[Support request] Adding padding to .inside-article for custom post type

Home Forums Support [Support request] Adding padding to .inside-article for custom post type

Home Forums Support Adding padding to .inside-article for custom post type

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #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.)

    #2414658
    David
    Staff
    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;
      }
    }
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.