Archived topic
Make Block Span Full Width of Container
13 replies · Started by Andres on July 18, 2020
Hi Tom,
I wanted to know if the most recent version of GP Pro will allow having a block created in GenerateBlocks span the full width of the container, regardless of the padding settings.
We went over this about two weeks ago, and you mentioned that the next release of GP Pro would allow it.
The block I am referring to is the green block with the CTA towards the bottom of the page.
A. Here's a page on our current site that has the full-width block in question for reference:
B. Here's a replica of the page on the site we are developing with GP Pro + GB:
What I'm looking to do is replicate the green CTA bar in Example A on the page in Example B.
If the latest version of GP Pro does not have this functionality, could you please explain how to in GB?
Thanks, and have a good night!
Cheers,
Andrés
Hi there,
the latest version of GenerateBlocks you can use the Full and Wide width options on the Container Block:

Hi David,
Thanks for the quick reply! That was painless!!!
One question. Just under the full-width green bar on the post below, how do I disable the linking to the current category and other posts?
Thank you David, and have a good day.
Cheers!
Andrés
Looks like you've figured out?
I'm not seeing the element you are referring to:
https://www.screencast.com/t/sttUhOsLkK
Let me know if I"m missing something :)
Hi Leo,
Sorry, I sent the incorrect URL.
This is the correct URL:
My apologies.
Have a good day.
Andrés
This should help:
https://docs.generatepress.com/article/blog-content-layout/#single
Hi Leo,
Thanks for the information.
Though we are using GP Pro, we are not using the Blog Module. Instead, we are using custom PHP templates for category pages.
If we activate the Blog Module, the post lists on the following category pages disappear (we are using WPSP for the posts lists):
For some reason, the post lists do not disappear on other category pages using WPSP, such as on the category page below:
All the custom PHP category pages have the same code except for the WPSP ID and the name of the category, so I do not know what would cause this to happen. In fact, I used the /gallery/ category PHP code for all the other ones and just changed the aforementioned information.
What would you recommend? Find out what's causing the post lists on those 3 category pages to not appear when the Blog Module is enabled or implement a solution that does not require the Blog Module to be enabled?
Thanks and have a good day.
Cheers!
Andrés
We can use CSS to hide the post navigation I guess.
Can you make it show again?
Did you want to remove the categories too?
Hi Leo,
Thanks for responding so quickly.
Whichever solution you think is best. It is odd that the post list on those three category pages disappear when the Blog Module is enabled, but the post list on all other category pages do not. On the category pages where post lists disappear when the Blog Module is enable, we have WPSP set up using a Cards option and masonry layout with the text overlaying the images. Maybe it has to do with that.
I've disabled the Blog Module, and the category and post tags are again visible. I would like to remove all tags that appear at the bottom of the page, please.
Thanks, Leo!
Cheers,
Andrés
This CSS should work:
.single .cat-links, .single .post-navigation {
display: none;
}
Hi Leo,
Wow, that was fast!
Your CSS made it go "poof". Thanks.
Quick question. The left and right grey margins extend below the green full-width CTA row. To have it not extend below this row, do you recommend using a negative bottom margin in the spacing settings for that row's container? I want this row to be the end of the container, just above the footer. I tried the negative margin, and it worked. I wanted to know if you would recommend a better solution.
Thanks, Leo!
Cheers,
Andrés
Is the full width green section on all single posts?
If so just do this:
.single .inside-article {
padding-bottom: 0 !important;
}
.single footer.entry-meta {
display: none;
}
Hello Leo,
That worked perfectly. Thank you very much!!
Have a good day.
Sincerely,
Andrés
No problem :)