• Resolved zakoops

    (@zakoops)


    Hello,

    This plugin has a css problem that plays havoc with our theme. This is related to the “Blocks spacing” found in “Blocks Settings”, in the Configuration tab of the “Advanced Gutenberg Settings” panel.

    In your plugin, default for “Blocks spacing” is zero (0) px. With such setting, this style is inserted in the head section for the frontend:

    
    <style id='dashicons-inline-css' type='text/css'>
    .entry-content > * {margin-bottom: 0px}
    </style>
    

    As a reminder, class “entry-content” includes everything in a WordPress post or page. Thus all of our finely tuned vertical spacings are rendered useless because of this brute-force approach. And such vertical spacings will significantly vary according to the tags used and contexts.

    We could rectify this code in “advanced-gutenberg-main.php”:

    
    wp_add_inline_style(
                'dashicons',
                '.entry-content > * {margin-bottom: '.$blocks_spacing.'px}'
            );
    

    But that’s not the right way…

    We prefer instead deinstalling your plugin and wait for proper behaviour of an otherwise very good set of new blocks for the Gutenberg paradigm.

    Thanks for looking into this matter!

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Vertical spacing – a css problem’ is closed to new replies.