Archived topic
Moving from another theme broke my site
21 replies · Started by Pablo on April 1, 2021
I use blocky, astra and nuki theme and this is the very first time i have this issue, this is what is normally do:
I setup the website as contained in 1280px
when i need a 100% width i create in Gutenberg as a 100%
That way what is not declared as 100% haves 1280px, i don't see the big problem here or why this is so extraordinary.
If im right your point is i have to manually declare block by block the width. Maybe this could be a solution - not the smarter one but a solution- when i start the site. RIght now is just not a option.
I cant believe the team who create the fastest theme of them all just have to options, or everything looks like a banner, or everything is inside a box. Really?
No, setting the width of the content container should not have to be done inside every block. This is something the block plugin you're using should set globally, like GenerateBlocks does.
Right now, you're expecting GeneratePress to somehow know the container width you want to use, and apply it to third-party block plugins it has no idea exist. It simply isn't possible.
Is there any way for you to show me a version of your site using the old theme? That way I can at least tell how the width was being applied, and we can do use the same solution in GeneratePress.
Also, I'm still seeing this CSS being served: https://www.screencast.com/t/wCV4up3m
That's going to cause issues no matter what plugin/theme you're using.
First of all, thanks for start to making some clarifications here. BUT what you say is impossible or extraordinary im telling you is the default thing in at least 5 teams i was working with.
I attach you credentials to a dev site where i have a old copy of the site. Go here and you are going to see this imposible feature:
Looking at this more, perhaps the solution is to simply remove the Full Width option Elvin suggested here: https://generatepress.com/forums/topic/moving-from-another-theme-broke-my-site/#post-1718691
It seems like the blocks you're using are forcing themselves to be full width, so that option isn't needed. What happens when you remove it?
This is what I'm seeing with that option removed and the weird body padding removed: https://www.screencast.com/t/6o7okpIB2
So, to summarize, I would:
1. Remove the Full Width Layout you created.
2. Figure out why FlyPress is serving all that weird body padding CSS and remove it.
3. Set your Navigation background to transparent in the Header Element where you've merged the Header: https://docs.generatepress.com/article/header-element-overview/#site-header
Tom thanks so much for your help, what actually work perfectly and is what i need... The content is displayed at 1280px except when i declare in Gutenberg to be 100%. I already contact FlyPress to ask why is this happening just with your theme, but i know is nothing in your end, thanks again.
Glad I could help!