Adding images to food menu items
URL to the page in question:
-
When creating a food item, how do I add media from the media library to the excerpt/description? The featured image option doesn’t give me any control over size/display and will crop non-square images.
Ian,
Thank you for your business first of all and great question. Here’s what you’ll want to do:
- Go to the Appearance section and select edit.
- From the list of files on the right, choose post-type-food.php and look for this spot:
'supports' => array('title', 'excerpt', 'page-attributes', 'thumbnail')
- Replace that with this:
'supports' => array('title', 'editor', 'excerpt', 'page-attributes', 'thumbnail')
- Save your changes.
Now you have a couple of options. You can use a plugin called Advanced Excerpt which will let you customize the excerpt that’s show (including images). Or you can edit the theme in one more spot and switch from showing an excerpt to the full content. Here’s how to do that:
- Go to the Appearance section and select Edit.
- Choose taxonomy-menu-group and look for this:
< the_excerpt(); ?>
and replace it with this:
- Save your changes.
That should give you more control over the menu item images and descriptions.
If you run into any trouble, just let me know.
Thanks,
Bill
- The topic ‘Adding images to food menu items’ is closed to new replies.