• Hi, this block is awesome thanks, I’m just having trouble getting the dimensions options to display. I am using the Widley used Beaver theme so not sure why. I tried the code you gave to another person in my child theme functions.php, but doesn’t work for me, any help much appreciated, thank you

    /**
     * Adds Dimension support to this theme
     *
     * @param array $editor_settings
     * @param object $editor_context
     * @return array $editor_settings
     */
    function superlist_block_padding_margin_theme_support( $editor_settings, $editor_context ) {
        if ( ! empty( $editor_context->post ) ) {
            $editor_settings["enableCustomSpacing"] = true;
    	$editor_settings["__experimentalFeatures"]["spacing"]["margin"] = true;
    
        }
        return $editor_settings;
    }
     
    add_filter( 'block_editor_settings_all', 'superlist_block_padding_margin_theme_support', 10, 2 );
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter dmattock

    (@dmattock)

    Sorry , it is working!… I was looking for the dimensions on the root node to globally effect the dimensions, but its only available per list item. It would be great to add this feature, so we can set a margin for the whole list in one instead of having to set each list item separately,

    Is this possible with CSS?
    many thanks ??

    • This reply was modified 1 year, 9 months ago by dmattock.
    Thread Starter dmattock

    (@dmattock)

    Sorry, dimensions options for the whole root super list block is there but under the style icon instead

    If it helps anyone else, I worked out the CSS for more control, and being able to adjust margin on just the sides

    li.wp-block-createwithrani-superlist-item{
    margin-left: 20px;
    margin-right: 20px;
    }

    • This reply was modified 1 year, 9 months ago by dmattock.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Dimensions options not displaying on Beaver theme’ is closed to new replies.