Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alignments have no effect on the frontend #16

Closed
itsamoreh opened this issue Jun 23, 2023 · 4 comments
Closed

Alignments have no effect on the frontend #16

itsamoreh opened this issue Jun 23, 2023 · 4 comments

Comments

@itsamoreh
Copy link
Collaborator

I set contentSize and wideSize in theme.json like this:

"layout": {
  "contentSize": "840px",
  "wideSize": "1100px"
},

see https://fullsiteediting.com/lessons/theme-json-layout-and-spacing-options/#h-how-to-set-content-width-using-theme-json

These settings work in the editor but not on the frontend.

Editor

screen-capture 2023-06-23 at 10 06 49 AM

Frontend

screen-capture 2023-06-23 at 10 07 27 AM
@elpuas
Copy link
Contributor

elpuas commented Jun 30, 2023

@itsamoreh I think you will need to add Inner blocks use content width on the ( inner ) blocks, will check and see if this work in this case.

@elpuas
Copy link
Contributor

elpuas commented Jun 30, 2023

Also i notice that the layout is been overridden by some inline styles, WordPress/gutenberg#36135

@elpuas
Copy link
Contributor

elpuas commented Jun 30, 2023

Looks like some inline styles from WP are killing the content-size
Screenshot 2023-06-30 at 12 35 22

@johnheimkes
Copy link
Contributor

the .entry-content div is getting the same override, so we can't go window full-width on blocks contained. I'm unsure yet where that override is coming from or why. We could custom roll some styles applied .entry-content to not have a max-width, and apply styles based on the alignment sizes.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

4 participants