Home › Forums › Support › Add text after main content on homepage but in a box like other content This topic has 15 replies, 2 voices, and was last updated 2 years, 4 months ago by Leo. Viewing 15 posts - 1 through 15 (of 16 total) 1 2 → Author Posts November 27, 2021 at 9:13 am #2026511 Sotirios 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. November 27, 2021 at 9:15 am #2026513 Sotirios View post on imgur.com November 27, 2021 at 10:42 am #2026607 LeoStaff Customer Support 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 🙂 November 27, 2021 at 12:03 pm #2026679 Sotirios Re Leo, https://generate.baseserveur2.xyz/ November 27, 2021 at 12:07 pm #2026684 LeoStaff Customer Support 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. November 27, 2021 at 2:48 pm #2026809 Sotirios But I have to use a hook to place the content there how do I style a hook? November 27, 2021 at 5:26 pm #2026899 LeoStaff Customer Support 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. November 27, 2021 at 5:29 pm #2026902 Sotirios 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 November 27, 2021 at 5:33 pm #2026906 LeoStaff Customer Support 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. November 27, 2021 at 5:39 pm #2026913 Sotirios 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? November 27, 2021 at 5:49 pm #2026915 LeoStaff Customer Support 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! November 27, 2021 at 5:50 pm #2026918 Sotirios thx will do it now. November 27, 2021 at 5:57 pm #2026921 Sotirios done https://wordpress.org/support/topic/css-to-create-a-shadow-on-the-content-boxes-of-homepage/#new-topic-0 November 27, 2021 at 8:05 pm #2026961 LeoStaff Customer Support Just answered. Make sure to add a GB container block first as I suggested in the post. November 27, 2021 at 8:46 pm #2026998 Sotirios thanks a lot Author Posts Viewing 15 posts - 1 through 15 (of 16 total) 1 2 → You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In