How to get transparent background in blogposts?

Hi everyone,
I’m using X to build my site that mainly consists of pages and that works great.
Now I want to add some kind of “latest news” with posts. That works in general, but the posts do have a black background. I’d like a tranparent background in those posts. Also I don’t want to see the footer in posts.

For pages I just use the template “blank- no container…”. How do I change the “template” for the posts?

See here:


On the top right you see “Sommerdeal 2019” (the post). Click on it to see what I mean…

Thanks in advance
Ralf

Hi Ralf,

You should be able to remove the background and the footer through custom CSS. Please add this code in X > Theme Options > CSS:

.single-post .entry-wrap {
    background-color: transparent;
    box-shadow: none;
    padding-left: 0;
    padding-right: 0;
}

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

As for setting the template, the option is only available for pages and not for post items.

Kindly note that since this is a custom code that changes the default behavior/display of the theme, you will be responsible to maintain or update the code in case you require further changes or if the code stops working in future updates. If you are uncertain how to proceed, it would be best to get in touch with a developer.

Hope this helps.

@Jade Thank you very much - that did it :slight_smile:

You’re most welcome, Ralf. :slight_smile:

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