Site logo

Archived topic

Combining pages (or spit text) on front page

3 replies · Started by Maarten on June 28, 2016

Viewing posts 1–4 of 4

Hi and thanks for your work. My current frontpage is 1 blob of text (1 page). I'd like to split this in 2 parts, so the background is visible in between the content. I know I can use sections, but then I will lose the sidebar which I don't want. Do you have an idea?
My site: http://insbox.nl/

Kind of complicated, but do-able.

Use your Simple CSS plugin: https://wordpress.org/plugins/simple-css/

This will give you a CSS metabox on that page which you can add CSS to that will only apply to that page.

Then do something like this:

.separate-containers .inside-article {
    background-color: transparent;
    padding: 0;
}

Then you'll need to wrap your content in the containers you need to have like this:

<div class="my-cool-box">
   Some content
</div>
<div class="my-cool-box">
   Some content
</div>

Then you can add this CSS:

.my-cool-box {
    background-color: #FFFFFF;
    padding: 40px;
    margin-bottom: 20px;
}

That should get you on your way :)

Works perfectly, many thanks Tom! Keep it up :)

You're welcome :)

This archived topic is closed to new replies.