Home › Forums › Support › Adding Custom body_class to Specific Layout This topic has 3 replies, 2 voices, and was last updated 2 years, 1 month ago by Leo. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts March 23, 2022 at 12:16 pm #2165114 Gilad Gafni I’m looking to add a body_class to a specific Layout Element. Similar to the solution displayed here – https://generatepress.com/forums/topic/custom-classes-on-elements-layout/ But with the condition being whether or not the current page is using a specific layout. Thanks! March 23, 2022 at 4:50 pm #2165237 LeoStaff Customer Support Hi there, What specific layout are you referring to here? March 27, 2022 at 10:33 am #2168995 Gilad Gafni I have 2 layout elements. In layout 1, I would like to have – .header-wrap .inside-header { margin-top: 40px; } In layout 2, I would like to have – .header-wrap .inside-header { margin-top: 140px; } My thought was to have a unique body_class to each layout and use style it that way, but maybe there’s a different way? March 27, 2022 at 11:02 am #2169017 LeoStaff Customer Support What is the logic/condition behind the two layouts? Can you provide the links to the specific examples? Thanks! Author Posts Viewing 4 posts - 1 through 4 (of 4 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In