Title: Broken layout &#8211; class.cooked-seo.php
Last modified: February 25, 2021

---

# Broken layout – class.cooked-seo.php

 *  Resolved [zebess](https://wordpress.org/support/users/zebess/)
 * (@zebess)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/broken-layout-class-cooked-seo-php/)
 * Hi, Thank you for this great plugin!
 * I have a broken layout issue that relate to class.cooked-seo.php.
    For a long
   time i have never been able to upgrade past Cooked 1.4.0.1 because of an issue
   that would break the layout of my recipes posts. Lately i had no choice to update
   because i cannot find that older version anymore.
 * Through some experimentation i realized that by modifying class.cooked-seo.php,
   i would get the issue better, but in return Google search console is sending 
   me warning of improper ISO format for cooking times.
 * I have partly solved the issue by modifying class.cooked-seo.php this way:
 * 1. i comment out (Disable) line 56 :
    $ingredient = Cooked_Recipes::single_ingredient(
   $ing, false, true );
 * 2. On line 97,98,99 i remove the “,’ISO'”
    ‘cookTime’ => Cooked_Measurements::
   time_format($cook_time,’iso’), ‘prepTime’ => Cooked_Measurements::time_format(
   $prep_time,’iso’), ‘totalTime’ => Cooked_Measurements::time_format($total_time,’
   iso’),
 * >become>
 * ‘cookTime’ => Cooked_Measurements::time_format($cook_time),
    ‘prepTime’ => Cooked_Measurements::
   time_format($prep_time), ‘totalTime’ => Cooked_Measurements::time_format($total_time),
 * I have no idea how i found this out, because it was about 2 years ago.
    Although
   this method fix the bug, i do not prefer it as it affect my Google ranking and
   the chance of displaying recipe card in google search results because of the 
   invalid non-ISO time format. I also suspect that removing line 56 affect other
   SEO functions.
 * Could you see any way in which the code could be improved to avoid the layout
   breakup some of us might be experiencing?
 * You can see the broken layout example at:
    [https://staging.cuisineravecmicheline.com/en/instant-pot-chicken-curry/](https://staging.cuisineravecmicheline.com/en/instant-pot-chicken-curry/)
 * and the layout after the class.cooked-seo.php temporary fix at:
    [https://cuisineravecmicheline.com/en/instant-pot-chicken-curry/](https://cuisineravecmicheline.com/en/instant-pot-chicken-curry/)
 * Thanks in advance
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fbroken-layout-class-cooked-seo-php%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

The topic ‘Broken layout – class.cooked-seo.php’ is closed to new replies.

 * ![](https://ps.w.org/cooked/assets/icon-256x256.png?rev=2005204)
 * [Cooked - Recipe Management](https://wordpress.org/plugins/cooked/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cooked/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cooked/)
 * [Active Topics](https://wordpress.org/support/plugin/cooked/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cooked/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cooked/reviews/)

## Tags

 * [layout](https://wordpress.org/support/topic-tag/layout/)

 * 0 replies
 * 1 participant
 * Last reply from: [zebess](https://wordpress.org/support/users/zebess/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/broken-layout-class-cooked-seo-php/)
 * Status: resolved