开发者 | halgatewood |
---|---|
更新时间 | 2018年10月23日 13:37 |
PHP版本: | 3.0 及以上 |
WordPress版本: | 5.0 |
The Calories from Fat number is computed from the totalfat attribute.
Thinking about it.
You can control the width with the "width" attribute. The width attribute uses ems as its unit. It is styled to scale but it's likely that the "Nutrition Label" text won't scale well as the default font is Helvetica, which isn't fixed-width. Each label as an id attribute of wp-nutrition-label-{ID} which allows you to change the label as you see fit.
This is really hard to do. To do it at all reliably requires human intervention to match ingredients names against their entries in a nutrition database. That's a level of difficulty I don't wan to try to tackle with this plugin. You may find the USDA's free online nutrition database useful for looking up nutrition information: http://www.nal.usda.gov/fnic/foodcomp/search/