Remove blog header and page padding/margin

Hi there,

I would like to remove the padding/blog page title from my blog posts as shown below.

To date I have added the following CSS:

.x-header.entry-header {
display: none
}
.single-post .entry-featured {
display:none;
}

I knew how to do it on the old x theme but now the same doesnt seem to work here.

Please let me know if you can help.

Thanks,
Heike

Hello Heike,

Please try this code in the custom CSS:

.single-post .x-container.width.offset {
    max-width: 100%;
    width: 100%;
    margin-top: 0;
}

Hope this helps.

Hi Jade,

While it remoed the padding from the sides it makes the whole page look to stretched (the content). It also doesn’t remove the page title “Blog”. Anything else I could try?

Thanks,
Heike

Hi again,

Please replace the previous code with the following code:

.single-post .x-container.width.offset {
    max-width: 100%;
    width: 100%;
    margin-top: 0;
}

.single-post .x-landmark {
  display: none;
}

.single-post .entry-content.content, .single-post .x-comments-area {
  max-width: 1250px;
  width: 85%;
  margin: 2.75em auto;
}

If you would like to learn CSS, I am sharing few resources that you take a look to get started with CSS and an interesting tool that you can use to speed up the development process.

I recommend you to watch following video that will help you to get started with CSS.

https://www.youtube.com/watch?v=MFR4WXiLzpc

Sometimes it can get a bit difficult to find out the right selector to be able to write the required CSS codes. A handy tool that can help you in this is Google Chrome dev tools. I am sharing the resource that you can refer to get started with dev tools.

https://developers.google.com/web/tools/chrome-devtools/css/

https://developers.google.com/web/tools/chrome-devtools/

https://www.youtube.com/watch?v=tP_kXBJWPhQ&t=200s

Let us know how this goes!

Hi Nabeel,

I tried that but it didn’t work either. I have now used the follwoing CSS:

.single-post .entry-featured {
display: none;
}
.single-post .x-container.width.offset {
max-width: 100%;
width: 100%;
margin-top: 0;
}

However it still shows the annoying page title with the breadcrumbs and also the space.

How can I remove this? Any help is muchly appreciated :slight_smile:

Nevermind, I fixed it by adding this CSS:

.x-header-landmark {
display: none;
}

No more help needed. Thank you for your assistance :slight_smile:

You are most welcome!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.