Archived topic
Add text after main content on homepage but in a box like other content
15 replies · Started by Sotirios on November 27, 2021
Hello, I have been able to add text on homepage following this
https://generatepress.com/forums/topic/how-can-i-add-text-on-homepage-and-categories-pages/
But the content appears outside of a box unlike the rest of the content on the homepage, any idea why?
Thank you.
Hi there,
Any chance you can link us to the site in question?
You can use the private information field:
https://docs.generatepress.com/article/using-the-premium-support-forum/#private-information
Let me know :)
You will just need to style your content so it appears like it's in a box.
Try adding some white background color and margin top.
This can be done easily with a block element and GenerateBlocks.
But I have to use a hook to place the content there how do I style a hook?
Are you using a block element?
https://docs.generatepress.com/article/block-element-overview/
If so you can use GB's container to do that:
https://docs.generateblocks.com/article/container-overview/
It's just a container with white background and margin-top to separate from the post content above.
yes I did with a white background but the color as white as the other bowes for some reason and there is no shadow like the other boxes
The easiest method to add box-shadow to GB's content is to use the Effects options in the pro version:
https://docs.generateblocks.com/article/effects-overview/
https://generateblocks.com/pro/
Or else you would need to add a custom class to the container and use some CSS.
I already have the generatepress premium theme, I should not need to pay another yearly fee just for that, a simple additional custom css should do the trick for that. Do you know the css please?
GP and GB are separate products.
I'm happy to help with the CSS if you open a support topic in GB's free support forum here:
https://wordpress.org/support/plugin/generateblocks/
Other users will benefit from the answers as well.
Thanks!
thx will do it now.
Just answered.
Make sure to add a GB container block first as I suggested in the post.
thanks a lot