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/and the layout after the class.cooked-seo.php temporary fix at:
https://cuisineravecmicheline.com/en/instant-pot-chicken-curry/Thanks in advance
The page I need help with: [log in to see the link]
- The topic ‘Broken layout – class.cooked-seo.php’ is closed to new replies.