gutemberg blocks “change aligment” doesn’t work
-
Firstable thanks for the amazing theme and support.
I found an issue: gutenberg blocks (like an image in a post) set to full width don’t show full width.
I installed the demo page, and in customize/layout/site container/ is set to 800px width, and the default container is Normal. I want the blocks (like paragraphs) maintain 800px, but the images set to full width go up to it.
I only can get full width by changing “Normal” to “Full Width/streched”, but it also ignores the 800px.I found a solution here: https://weblines.com.au/gutenberg-blocks-wide-alignment-full-width/#devaside , maintain the default container to Normal and 800px and:
– adding the snippet to functions.php:
<?php /** * Register support for Gutenberg wide images in your theme */ function mytheme_setup() { add_theme_support( 'align-wide' ); } add_action( 'after_setup_theme', 'mytheme_setup' );
– and also this, to the css:
.entry-content .alignwide { margin-left : -80px; margin-right : -80px; } .entry-content .alignfull { margin-left : calc( -100vw / 2 + 100% / 2 ); margin-right : calc( -100vw / 2 + 100% / 2 ); max-width : 100vw; } .alignfull img { width: 100vw; }
This is my clean installation using only the woostify wizard: https://mimay.es/oneact/2018/10/16/when-feeling-tired-of-human-relationships/
Could you tell me if its an issue or im doing something wrong,
huge thanks in advance!!!!The page I need help with: [log in to see the link]
- The topic ‘gutemberg blocks “change aligment” doesn’t work’ is closed to new replies.