Site logo

Archived topic

Tricky GB Container

13 replies · Started by Carsten on September 22, 2020

Viewing posts 1–14 of 14

Hi there, I find working with the container very tricky, I'm trying to add a Heading into the Container, with a background image as background, full width. I have been dragging the arrows, using different keys and have added the Heading block directly in the Container, but every time I end up with this:
It is also very tricky to target the container from the heading, so better tools would be appreciated.

https://imgur.com/undefined

What am I doing wrong here?

One thing more, it would be really nice if a reusable Container block was editable, so the template could be used on different pages but with eg. changeable Heading and background image, so the structure, like padding and margin was the same on all pages, that would save a lot of work.

Thanks!

Hi there,

The image link is not working. Can you confirm?

Any chance you can show an example you are trying to create? Might be easier for me to help that way.

Reusable block is a WordPress feature unfortunately so hopefully they will make it better in the future.

I find the easiest way to copy a block is to copy the HTML.

Any chance you can link me to pages in question so I can compare where the difference is coming from?

Sure, please let me know if you need admin access.

I want the Messages and /members page containers to look like the Activity page container.

Please note that the /members page container represent a third version of 'full width'

Why does the /search page turn out as it does, with such a little hight? actually I like this narrow look, but I don't know how to recreate it, as the settings of the container apparently are the same as the other pages.

Any documentation, how to copy the HTML to copy a block?

Thanks

Its probably if the page is members-loop or not, and the activity page is not, but the BP primary content area is also full width on the messages page, so I do not quite understand, why does the block not appear as full width as well? Any suggestions how to solve it?

https://imgur.com/rOMdXKE

Comments to the look of the container block on the /search page, why is it so narrow, it should be the same as the activity page?

sorry i just updated my thread

Did you take a look at the short video I linked above?

That CSS I pointed out should be the issue.

Ahh yes, I added the Flex box, and I can see that they share the same selector, that's why

Thanks for solving this mystery!

No problem :)

Found the right hook for the messages page so the container is under item-body, which solved the issue, thanks again!

Glad to hear :)

This archived topic is closed to new replies.