• Resolved Sara

    (@mightysparkdesign)


    Hi there,

    So far really love the ease and simplicity of your list block. I watched your video tutorial and realized the Dimensions setting doesn’t appear in my inspector panel on the left and that you’d mentioned it may or may not be available depending on which theme I’m using. Should I reach out to the theme developer or is this something you would look into? I’m using Kadence Pro theme as well as their pro blocks plugin.

    Many thanks!
    Sara

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Aurooba Ahmed

    (@aurooba)

    Hi @mightysparkdesign! Yes, this is something the theme needs to enable. You’ll want to reach out to Kadence and ask when they plan on supporting the new “spacing” features in 5.9.

    In the meantime, if you add the following code to your functions.php file, it should add support for both margin and padding. ??

    /**
     * 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 );
    Thread Starter Sara

    (@mightysparkdesign)

    Awesome, thanks for the speedy reply! I’ve reached out to the Kadence folks and also added the code and it’s working perfectly.

    Thanks again!

    Plugin Author Aurooba Ahmed

    (@aurooba)

    My pleasure, Sara! I’m glad it’s working. I’d appreciate a review if you are enjoying the block, when you have a moment! ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Dimensions option not available’ is closed to new replies.