Adding images to food menu items

Support Area Forums Foxy Adding images to food menu items

Tagged: ,

Viewing 2 posts - 1 through 2 (of 2 total)
URL to the page in question:
  • Author
    Posts
  • #9439
    Ian Beyer
    Participant

    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.

    #9442
    Bill Robbins
    Moderator

    Ian,

    Thank you for your business first of all and great question. Here’s what you’ll want to do:

    1. Go to the Appearance section and select edit.
    2. 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')
      
    3. Replace that with this:
      
      'supports' 				=> array('title', 'editor', 'excerpt', 'page-attributes', 'thumbnail')
      
    4. 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:

    1. Go to the Appearance section and select Edit.
    2. Choose taxonomy-menu-group and look for this:
      
      < the_excerpt(); ?>
      

      and replace it with this:

    3. 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

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Adding images to food menu items’ is closed to new replies.