Site logo

Archived topic

Add section (container) to main page

5 replies · Started by Rust on October 7, 2019

Viewing posts 1–6 of 6

Hi. I add new section/container at front page with ELEMENTS-ADDNEW-HOOK, but:

1. i cant change this containers color with CSS, because it change body color too
2. i cant make this container full width, because my sites container is 1300px
sc

with Elements-Addnew-Header (page-hero header) no such problems, but it cannot be applied here...

but section not allowed at front page... i dont want to use static page at front page

Yes, added with Hook, but i cant understand, where to add your hook. Now my hook looks like this:
sc

If you select the after_header hook it will fill the width of the screen. You would therfore need to add a wrap to your code: eg.

<div class="custom-container">
    <div class="grid-container">
        <!-- your code goes here -->
    </div>
</div>

You can then style the background using the custom-container CSS class

This archived topic is closed to new replies.