Site logo

Archived topic

custom post type single adding "full-width-content" class to single body

4 replies · Started by Josh on September 29, 2020

Viewing posts 1–5 of 5

I can't seem to figure out why the generate press is adding "full-width-content" to my single page body class on of my custom post type.

For clarity, I do like the full width and no sidebar, but I wanted to add containers to my content rows with "grid-container container". On my homepage this works, however because of the full-width-container class, generate press removes the max-width of my content with this selector:


.full-width-content .container.grid-container {
    max-width: 100%;
}

I forgot to mention I added this to my functions.php to remove the sidebar. I want full-width, but need to be able to add content containers so it doesn't go to the very edge.

    if ( is_singular('al_event') ) {
        return 'no-sidebar';
    }

Hi there,

your site requires a login - can you share in the Private Information box in your reply.

shoot. sorry about that

Is that built with HTML ?

This archived topic is closed to new replies.