-
AuthorPosts
-
March 5, 2014 at 6:32 am #232539
Hi guys,
So after 4 hours of painful attempts to fix this authorship issue, I’ve lost my mind. I looked up all of the tutorials online and I swear, none of them are applicable to Enfold. I find similarities in the code, but I can’t solve this on my own and desperately need some assistance.
Every bit of help out there suggests to edit single.php and adjust classes for things like the_time, the_author, etc. So I tried to do this to the best of my abilities, but no luck. The code used in enfold isn’t the same as all of the fixes people provide.
Here are the errors I get from google (scroll down): http://goo.gl/epFyAo
The following code is found in loop-index.php.
This is the code I see that might be for the: Error: Missing required field “updated”.
echo "<span class='post-meta-infos'>"; $markup = avia_markup_helper(array('context' => 'entry_time','echo'=>false)); echo "<time class='date-container minor-meta updated' $markup>".get_the_time(get_option('date_format'))."</time>"; echo "<span class='text-sep text-sep-date'>/</span>";
And here is the code I see that might be for the: Error: Missing required hCard “author”.
echo '<span class="blog-author minor-meta">'.__('by','avia_framework')." "; echo '<span class="entry-author-link" '.avia_markup_helper(array('context' => 'author_name','echo'=>false)).'>'; echo '<span class="vcard author"><span class="fn">'; the_author_posts_link(); echo '</span></span>'; echo '</span>'; echo '</span>'; echo '</span>'; echo '</header>';
Can someone please tell me what to change to fix these issues? I really tried to do this on my own, and this is my last resort.
Thanks for your help!
- This topic was modified 10 years, 9 months ago by cyrusis.
March 5, 2014 at 10:57 am #232657Hey cyrusis!
Do you have the latest version of Enfold? It has been optimized for hatom entry.
Please refer to these links:
https://kriesi.at/support/topic/google-hatom-errors/
https://kriesi.at/support/topic/hatom-feed-errors-solution-for-enfold/Regards,
IsmaelMarch 6, 2014 at 7:28 am #233076Hey Ismeal.
I took your advice and updated the theme to the most current version. However, I’m still getting the same Hatom entry errors.
Those links you sent me aren’t doing it for me. The first link has dead pastebin links, and the file names differ somewhat from the Enfold files.
And the second link contains two tutorials which I have already tried to follow, but sadly their fixes can’t be replicated because the code and file names differ too much from what Enfold uses.
Any detailed help would be really appreciated!
Many thanks
EDIT: Okay, so I just realized that the blog hatom entries work perfectly fine. It’s just the masonry blog display on the homepage that is giving Hatom entry errors. So why is the Masonry blog element giving problems?
- This reply was modified 10 years, 9 months ago by cyrusis.
March 8, 2014 at 10:54 am #234129Hey!
I’ll add both fields to the masonry grid with the next update. For now you can fix it by replacing this line in: wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/masonry_entries.php
$this->loop[$key]['date'] = "<span class='av-masonry-date meta-color'>".get_the_time($date_format, $id)."</span>";
with
$this->loop[$key]['date'] = "<span class='av-masonry-date meta-color updated'>".get_the_time($date_format, $id)."</span>"; $author = get_the_author_meta('display_name', $entry->post_author); $this->loop[$key]['author'] = "<span class='av-masonry-author meta-color vcard author'><span class='fn'>". __('by','avia_framework') .' '. $author."</span></span>";
Then replace:
$this->loop[$key]['text_after'] .= $this->loop[$key]['date'];
with
$this->loop[$key]['text_after'] .= $this->loop[$key]['date']; $this->loop[$key]['text_after'] .= '<span class="av-masonry-text-sep text-sep-author">/</span>'; $this->loop[$key]['text_after'] .= $this->loop[$key]['author'];
and insert this code into the quick css field:
.av-masonry-date, .av-masonry-text-sep, .av-masonry-author{font-size: 11px;} .av-masonry-text-sep{padding: 0 5px;}
Regards,
Peter -
AuthorPosts
- You must be logged in to reply to this topic.