eCards Plugin Update: Gutenberg and Columns

👋 Ciprian on Thursday, February 11, 2021 in Blog
Last modified on Thursday, February 11, 2021

Learn JavaScript by example. Code snippets, how-to's and tutorials. Try now!

A new version of our WordPress eCards plugin has been released, bringing fixes and new features. Let’s dissect the changelog:

= 5.2.0 =
* FIX: Fixed block parsing undefined variables/indexes
* FIX: Fixed function naming according to WordPress Coding Standards
* FIX: Fixed select field height
* FEATURE: Implemented columns
* FEATURE: Changed eCard image to a block editor figure/image block

All eCard images now use the native figure/image block editor structure, making everything easier to style and making the images consistent for themes that style all images in a similar way:

<figure class="wp-block-image size-large">
    <img width="300" height="200" src="" class="attachment-medium size-medium jetpack-lazy-image jetpack-lazy-image--handled" alt="" loading="lazy" srcset="" data-lazy-loaded="1" sizes="(max-width: 300px) 100vw, 300px">

Originally being displayed in 3 columns, the eCard container is now configurable, allowing admins to set a number of columns (from 1 to 6), depending on their site design. The default/fallback remains 3.

The CSS has been simplified and a small fix has been implemented for some specific Bootstrap conflicts.

Other code-related fixes and improvements have been implemented.


Buy me a coffee to support my work!

👋 Added by Ciprian on Thursday, February 11, 2021 in Blog. Last modified on Thursday, February 11, 2021.

Leave a Reply

You have to agree to the comment policy.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Privacy Policy