Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1224154

    zeusuk
    Participant

    Hi there
    In my structured data in google console i get a number of these errors showing, its already been covered in another couple of posts.
    But why i started a new one is, i followed the instructions to put this code

    /* Fix “Missing Author” and “Missing Updated” issue – START */
    add_filter( ‘the_content’, ‘custom_author_code’);

    function custom_author_code($content) {
    if (is_singular() || is_single()) {
    return $content .
    ‘<div class=”hatom-extra”><span class=”title”>’. get_the_title() .'</span> was last modified: <span class=”updated”> ‘. get_the_modified_time(‘F jS, Y’) .'</span> by <span class=”author vcard”><span class=”fn”>’. get_the_author() .'</span></span></div>’ ;
    } else {
    return $content;
    }
    }
    /* Fix “Missing Author” and “Missing Updated” issue – END */

    in my function.php file which i did, no problem.
    But then in the same post it says add also add this code into the custom CSS

    .hatom-extra {
    font-style: italic;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    }

    But after i did this i got a message at the bottom of my homepage saying it was modified by me, october 19 2016.
    Why does it do this and is there a way to remove this message?

    Thanks

    #1224156

    zeusuk
    Participant
    This reply has been marked as private.
    #1224190

    zeusuk
    Participant

    Hi support
    Please ignore this as i fixed my problem.
    If anyone else has this problem after that code in css in my post, also put in custom css

    .hatom-extra{
    display: none;
    }

    for the pages and

    .page .entry-wrap .hatom-extra{
    display: none;
    }

    for the posts, now they’re not showing anywhere which is what i needed

    Or just follow this link to see more… https://community.theme.co/forums/topic/how-do-i-remove-the-was-last-modified-2016-by-from-the-bottom-of-my-page/

    #1224375

    Joao
    Moderator

    Glad to hear it,

    Thanks for letting us know

    Joao