• Resolved Gin

    (@rawdolphe)


    Hi Phi,

    Thanks for this really great plugin, I am testing it locally since yesterday and I think there is CSS glitch with the Prefix and Suffix in the Block.

    It’s adding some margin on top of the Prefix or Suffix, and I really can’t see where it’s coming from.

    Please note, I am not great with php and I still don’t have a clue how to insert code in templates, so my setup is very simple, as follow — not doing anything fancy:

    I add a couple of Meta Fields in the WordPress post, nothing fancy, just at the bottom of the page, enabled from the Preferences > Panels > Custom Fields…

    Than in the Gutenberg Query loop / Archives, I add a couple of Blocks and in Meta field settings > Field Type > I pick “Dynamic field”, then in Field Name I add the field name created in the post. So I use two Blocks, presented inline and Display Output is Inline block.

    For now I could always add the css as shown below, but I thought you might like to now.

    Also, very important, this is happening a bit randomly; for example, it might add the top margin in the first block’s Prefix or Suffix, and then the next block is fine… then if you play with the settings and resave and the second Block with have the margin added and the first one back to normal… so it’s a bit erratic.

    Otherwise, I am so glad you created this plugin, I searched WordPress for the past two weeks for something like that, and yesterday only I persevered and decided to go through tons of pages through the search, it’s a shame because it deserves to be at the top of the search!

    .wp-block-mfb-meta-field-block.is-display-inline-block .prefix+.value, .wp-block-mfb-meta-field-block.is-display-inline-block .value+.suffix {
        margin-left: 0.5em;
        margin-top: 0; /*0 or auto fixes it*/
    }

    IMPORTANT UPDATE:
    Actually, the extra top margin is added to the css class “Value” and not prefix or suffix. But the glitch appears WHEN you add a prefix or suffix.

    • This topic was modified 9 months, 3 weeks ago by Gin.
    • This topic was modified 9 months, 3 weeks ago by Gin.
    • This topic was modified 9 months, 3 weeks ago by Gin.
  • The topic ‘Prefix and Suffix CSS glitch’ is closed to new replies.