Site logo

Archived topic

generate_after_primary_content_area not really working on Flexbox

4 replies · Started by Fabien on December 3, 2020

Viewing posts 1–5 of 5

Hi,

The generate_after_primary_content_area hook is not really working since moving to Flexbox. Indeed the hook display the content in a column (next to the main area) instead of below...

Hi there,

Any chance you can link us to the site in question?

You can use the private information field.

Let me know :)

Hi Leo,

Unfortunately, I am working in a local env. However, you can just try with a new/balnk install. I just did a test and the problem is still here :

https://share.getcloudapp.com/6qux5QX4

The same story goes for generate_inside_container due to flexbox

Hi there,

you will need to hook your content within a DIV ( if it doesn't output one ).
Then use some CSS, first to make the flexbox wrap and then give your hook element a width like so:

@media(min-width: 769px) {
    .site-content {
        flex-wrap: wrap;
    }
    .my-hook-element {
        flex: 1 0 100%;
    }
}
This archived topic is closed to new replies.