[Resolved] Combining pages (or spit text) on front page

Home Forums Support [Resolved] Combining pages (or spit text) on front page

Home Forums Support Combining pages (or spit text) on front page

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #205080
    Maarten

    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/

    #205124
    Tom
    Lead Developer
    Lead Developer

    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 πŸ™‚

    #206504
    Maarten

    Works perfectly, many thanks Tom! Keep it up πŸ™‚

    #206505
    Tom
    Lead Developer
    Lead Developer

    You’re welcome πŸ™‚

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.