RecipeFilter icon indicating copy to clipboard operation
RecipeFilter copied to clipboard

theveganafterglow.com not detected

Open cbenard opened this issue 5 years ago • 3 comments

https://theveganafterglow.com/cherry-bakewell-smoothie/

cbenard avatar Jun 23 '20 18:06 cbenard

In the linked page it looks like they're using Elementor and maybe Mediavine Creator or similar. Sadly, there is no ID to grab at the top level and only the inner sections (ingredients, instructions, notes, etc) have IDs (see the DOM portion below).

image

With nothing to grab onto at the top level, I don't think there's an easy way to add compatibility for this site.

However, they do have a nice JSON-LD object. I think a longer-term goal should be to look for these and format them into the recipe card that's shown up top when they're present and well-formed! Would love a PR to that effect that also doesn't introduce a lot of dependencies.

{
  "@context": "http://schema.org",
  "@type": "Recipe",
  "name": "Cherry Bakewell Breakfast Smoothie",
  "datePublished": "2020-06-11",
  "recipeYield": 1,
  "description": "A sweet cherry + almond butter smoothie with a dairy free vanilla yogurt, and topped with crunchy granola! Perfect for breakfast or dessert!",
  "image": [
    "https://theveganafterglow.com/wp-content/uploads/2020/03/986D3E5F-6CDB-4ADD-AF49-0A7AFAEF443A-scaled-720x720.jpg",
    "https://theveganafterglow.com/wp-content/uploads/2020/03/986D3E5F-6CDB-4ADD-AF49-0A7AFAEF443A-scaled-720x540.jpg",
    "https://theveganafterglow.com/wp-content/uploads/2020/03/986D3E5F-6CDB-4ADD-AF49-0A7AFAEF443A-scaled-720x405.jpg",
    "https://theveganafterglow.com/wp-content/uploads/2020/03/986D3E5F-6CDB-4ADD-AF49-0A7AFAEF443A-scaled-735x980.jpg"
  ],
  "recipeCategory": "Plant-Based Recipes",
  "prepTime": "PT5M",
  "cookTime": "PT0S",
  "totalTime": "PT5M",
  "recipeIngredient": [
    "1 cup frozen cherries",
    "1/4 cup frozen raspberries",
    "2 tbsp unsalted almond butter",
    "3 tbsp dairy free vanilla yogurt (I use the brand Alpro)",
    "1/2 cup plant-based milk*",
    "¼ tsp nutmeg powder",
    "1 tsp almond extract",
    "1-2 heaped tbsp granola"
  ],
  "recipeInstructions": [
    {
      "@type": "HowToStep",
      "text": "Mix all ingredients in a blender. Adding more milk depending on the power of your blender and how thick you'd like the smoothie to be.",
      "position": 1,
      "name": "Mix all ingredients in a blender. Adding more...",
      "url": "https://theveganafterglow.com/cherry-bakewell-smoothie/#mv_create_2_1"
    },
    {
      "@type": "HowToStep",
      "text": "Top with granola, fruit, nuts, seeds... ect.",
      "position": 2,
      "name": "Top with granola, fruit, nuts, seeds... ect.",
      "url": "https://theveganafterglow.com/cherry-bakewell-smoothie/#mv_create_2_2"
    },
    {
      "@type": "HowToStep",
      "text": "Sit back and enjoy your smoothie!",
      "position": 3,
      "name": "Sit back and enjoy your smoothie!",
      "url": "https://theveganafterglow.com/cherry-bakewell-smoothie/#mv_create_2_3"
    }
  ],
  "keywords": "cherry bakewell, cherry smoothie, vegan breakfast, vegan recipe, plantbased, healthy",
  "suitableForDiet": "VeganDiet",
  "nutrition": {
    "@type": "NutritionInformation",
    "calories": "366 calories",
    "carbohydrateContent": "40.8 grams carbohydrates",
    "fatContent": "19.6 grams fat",
    "fiberContent": "9.7 grams fiber",
    "proteinContent": "10.9 grams protein",
    "servingSize": "1",
    "sodiumContent": "42.8 grams sodium",
    "sugarContent": "27 grams sugar"
  },
  "url": "https://theveganafterglow.com/cherry-bakewell-smoothie/"
}

sean-public avatar Jun 23 '20 18:06 sean-public

Is this a similar site? It looks like it has the same mv syntax in the DOM. It's also not recognized: https://wellnessdove.com/juicy-refreshing-peppers-in-tomato-sauce-whole-food-vegan/

It looks like #mv-create-wrapper has the entire recipe.

cbenard avatar Jul 09 '20 13:07 cbenard

I think the #mv-create-wrapper ID (probably created by Mediavine's content creation tool) might be too general to add because it might make the plugin work on non-recipe-pages.

The JSON-LD solution will handle all of these cases with a nice, new card type created from the pure recipe data.

sean-public avatar Jul 09 '20 18:07 sean-public

This site closed May 31, 2023. Support for JSON-LD will be in another project.

sean-public avatar Jan 20 '24 08:01 sean-public