Templates on blog posts

Hello, I trust you’re doing well.

We’re setting up a new site using the bed and breakfast expanded demo. To take advantage of categories and such, we’re setting up content pages as blog posts.

To set up these pages, we’re using templates saved from regular pages…

How can we get rid of space where the blog post title would go? How about the space where the page title is? Please see attached screen shot.

Also, what tool would you recommend we use to apply filters to these pages (blog posts) so that we can, for example, only show posts of a certain category, tags, etc.?

Thanks for the help!

Hi @Jacko_Pinto,

To remove those spacing, please add this custom CSS under X > Theme Options > CSS:

.single-post .x-header-landmark,
.single-post .entry-header {
    display: none;
}
.single-post .entry-content {
    margin-top: 0;
}

If you would like the post to be full width, please also add this custom CSS:


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

.single-post .x-comments-area {
    margin: 0 35px;
}

You need to setup a child theme:

After that take a look at this article:

https://codex.wordpress.org/Plugin_API/Action_Reference/pre_get_posts

Please note all the custom codes should be placed under functions.php file locates in your child theme.

Hope it helps :slight_smile:

Thank you very much for your help with this issue. Best regards!

You’re welcome!
We’re glad @Thai were able to help you out.

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