Site logo

Archived topic

Is this CSS core GeneratePress?

3 replies · Started by Henry on January 27, 2021

Viewing posts 1–4 of 4

I have a Custom Post Type that I have created and it isn't using Gutenberg.

Anyway, I am curious, is this "core" GeneratePress code?

.separate-containers .comments-area, .separate-containers .inside-article, .separate-containers .page-header, .separate-containers .paging-navigation {
    padding: 40px;

https://www.screencast.com/t/rdoU4duMm

The reason I ask is that I need to remove the 40-40-40-40px CSS setting for this post type, and I am thinking that if I mess with this setting then it would screw up the mobile view?

The Custom Post Type (which is a single PHP post type) is called "companies" - do I just make the above CSS !important for that Custom Post Type?

What I am trying to do is REMOVE the TOP 40PX Padding, that's all

Thanks - hope that all makes sense!

Hi,

See Tom's answer about all.min.css here:
https://generatepress.com/forums/topic/all-min-css/#post-934950

.separate-containers .comments-area, .separate-containers .inside-article, .separate-containers .page-header, .separate-containers .paging-navigation {
padding: 40px;

This is taken from the customizer settings, it's the Content Padding you set on Appearance > Customize > Layout > Container.

The reason I ask is that I need to remove the 40px for this post type, and I am thinking that if I miss this setting then it would mess with the mobile view?

It is not good practice to mess with it. If you want to override it, you can write your own CSS and place it on Appearance > Additional CSS.

To directly answer what you're trying to do:

You can simple add this code on a Hook element:

<style>
.separate-containers .comments-area, .separate-containers .inside-article, .separate-containers .page-header, .separate-containers .paging-navigation {
    padding: 0px;
}
</style>

And then set the hook to wp_head and display rule location to the custom post type you want it to apply to.

Thanks Elvin!

No problem. :)

This archived topic is closed to new replies.