Description
Nutrition Facts Label Creator for WPBakery 1.5.0
Long description
Nutrition Facts Label Creator for WPBakery makes it simple to create beautiful, standards-style nutrition labels (like those found on food packaging) and place them anywhere using the WPBakery page builder. Designed for food blogs, recipe sites, product pages, and e-commerce stores, the plugin produces accessible, responsive labels that follow common layout conventions and are easy to customize β without needing to write HTML or CSS.
You can create labels manually, import nutrition data from recipe/product fields, or save reusable label templates. Labels are pixel-tight for printing and screen presentation, mobile-friendly, and provide semantic markup for accessibility and SEO.
Key features
- π WPBakery element β drag-and-drop Nutrition Facts block that you can configure in the WPBakery editor.
- π§Ύ Full nutrient support β calories, serving size, servings per container, total fat, saturated fat, trans fat, cholesterol, sodium, total carbs, fiber, sugars, protein, vitamins & minerals (custom fields allowed).
- π¨ Style controls β choose fonts, sizes, borders, alignment, and colors; responsive presets for mobile/tablet/desktop.
- π Templates & presets β save reusable label templates and apply them site-wide.
- π Shortcode support β insert labels anywhere with
[nutrition_label id="123"]. - π Data import β map label fields to post meta, WooCommerce product attributes, or custom fields.
- βΏ Accessible markup β semantic HTML and ARIA attributes for screen readers.
- π¨οΈ Print-ready β optimised spacing and sizing for printing or generating PDFs.
- π§© Custom nutrients β add or hide nutrient rows and change units (mg, g, IU, %DV).
- π Lightweight & secure β minimal dependencies, sanitized inputs, and compatibility with caching plugins.
Whatβs new in 1.5.0
- β Added mapping to WooCommerce product attributes for easy product label generation.
- β New preset styles (Classic, Compact, Modern) and improved responsive behavior.
- β Export/import of label templates (JSON).
- β Improved accessibility: keyboard focus states and enhanced ARIA labels.
- π Fixed an edge case where custom nutrient units were not saved for some templates.
- βοΈ Performance improvements when rendering multiple labels on a page.
Requirements & compatibility
- WordPress 5.6+
- WPBakery Page Builder (formerly Visual Composer) installed & active
- PHP 7.2+ (PHP 8 supported, recommended 8.0+)
- Works with WooCommerce (mapping added in 1.5.0)
- Tested with major themes; may require minor CSS tweaks for heavily-customized themes
How to use
- Activate the plugin.
- In WPBakery, add the Nutrition Facts Label element to any row/column.
- Fill the fields in the element panel or choose to map fields from post meta / WooCommerce attributes.
- Use the Style tab to pick a preset, adjust font sizes, border and spacing.
- Save β the label will render live in the builder and on the front-end.
Shortcode example
[nutrition_label id="123" template="classic" print="false"]
idβ label ID (generated when you save a label block as reusable)templateβ optional preset (classic,compact,modern)printβ optional toggle to enable print-optimized CSS
Template & data workflow
- Create a label block in WPBakery β Save as template.
- Reuse template on other posts or set it as default for product pages.
- Optionally map fields: e.g., map βCaloriesβ to
_nutrition_caloriespost meta or to a WooCommerce attribute likepa_calories. When mapped, the label auto-populates on that post/product.
Styling tips
- Use the pluginβs presets for quick results.
- For exact print sizing, preview the page and use the βPrint previewβ toggle inside the label settings.
- To match theme typography, set the label font-family to βInheritβ in style controls.
Developer notes
- Filters provided:
nfl_label_output($html, $data, $args)β modify final label HTML.nfl_default_templates()β register custom templates programmatically.
- Actions:
nfl_before_renderandnfl_after_renderfor hooking custom logic.
- Markup is contained within
.nfl-labelto avoid CSS collisions.
FAQ
Q: Can I include custom nutrients like βOmega-3β or βProbioticsβ?
A: Yes β add custom nutrient rows in the block settings and set units and %DV.
Q: Will this plugin affect site performance?
A: Itβs lightweight and only loads assets on pages where a label is present. Version 1.5.0 includes additional render optimizations.
Q: Can I translate labels?
A: Yes β all user-facing strings are translatable and the plugin is ready for localization.
Support & contact
If you need help, check the plugin docs (Help link in the WP admin), or contact support via your plugin marketplace account. For developer integrations, use the filters/actions listed above.
If you want, I can now:
- generate a product page description tailored for a marketplace listing (long + short + bullet highlights), or
- create three marketing-ready presets (text + CSS suggestions) you can drop into the plugin, or
- draft copy for the pluginβs WP admin settings screens.
Which of those would you like me to do next?








Reviews
There are no reviews yet