• Resolved randit

    (@randit)


    Hi.

    I am using a Genesis child theme that has a custom body class called full. How would I apply this body class to the custom post type posts I created in Custom Post Type UI?

    Thank you in advance for your help and support.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Without knowing for certain, I imagine that’s getting applied when a full-width template is being used for things like your page-based content. However, post types wouldn’t use those same templates.

    Can you confirm you’re wanting this when looking at a single post for the post type?

    Thread Starter randit

    (@randit)

    Hi Michael:

    Yes, that is correct.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Ideally, Genesis should be able to integrate its layout options in with custom post types, and I *think* you actually can, but it’s been awhile since I checked on how.

    The only other way I can think of would be a code solution, and I’m not sure how comfortable you may be with that idea. If you are, let me know, I can whip something up for you to help.

    Thread Starter randit

    (@randit)

    Hi Michael:

    Thank you so much for your help and support. I will work on coding it.

    Have a great day!

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    worst case scenario, you can use the body_class filter OR the body class function like this: body_class( 'full' ); to pass in extra classes.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Custom Body Class for New Post Type’ is closed to new replies.