[Support request] Adding Custom body_class to Specific Layout

Home Forums Support [Support request] Adding Custom body_class to Specific Layout

Home Forums Support Adding Custom body_class to Specific Layout

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

    #2165237
    Leo
    Staff
    Customer Support

    Hi there,

    What specific layout are you referring to here?

    #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?

    #2169017
    Leo
    Staff
    Customer Support

    What is the logic/condition behind the two layouts?

    Can you provide the links to the specific examples?

    Thanks!

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.