Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #687032

    Hey Guys,

    i use the standard-editor (as your recomendation) for writing posts. In my posts there is now under the title (Example you can see here: http://wahrheiten-der-welt.de/kyphi-rezepte-informationen/ in german):
    6. März 2016 / 0 Comments / in CategoryX, CategoryY / by XYZ

    Tag-Page looks the same: http://wahrheiten-der-welt.de/tag/mastix/

    Question: How i, hook-in/modify over my Child-Theme, include something like get_the_modified_time, change the existing style and change it on the article-view & archive-pages to:
    Veröffentlicht am (published on) 6. März 2016 / Zuletzt aktualisiert (last modified) am 15. September 2016 / 0 Comments / in CategoryX, CategoryY / by XYZ

    Thanks & Greetings!

    #688287

    Hey wellseo!

    Thank you for using Enfold.

    Create a folder called “includes” in your child theme then create a copy of the loop-index.php file. Adjust the position of the “post-meta-infos” content. And replace the get_the_time(get_option(‘date_format’)) function with the get_the_modified_time function.

    echo "<span class='post-meta-infos'>";
                    
                    echo "<time class='date-container minor-meta updated' >".get_the_time(get_option('date_format'))."</time>";
                    echo "<span class='text-sep text-sep-date'>/</span>";
    
                        if ( get_comments_number() != "0" || comments_open() ){
    
                        echo "<span class='comment-container minor-meta'>";
                        comments_popup_link(  "0 ".__('Comments','avia_framework'),
                                              "1 ".__('Comment' ,'avia_framework'),
                                              "% ".__('Comments','avia_framework'),'comments-link',
                                              "".__('Comments Disabled','avia_framework'));
                        echo "</span>";
                        echo "<span class='text-sep text-sep-comment'>/</span>";
                        }
    
                        if(!empty($cats))
                        {
                            echo '<span class="blog-categories minor-meta">'.__('in','avia_framework')." ";
                            echo $cats;
                            echo '</span><span class="text-sep text-sep-cat">/</span>';
                        }
    
                        echo '<span class="blog-author minor-meta">'.__('by','avia_framework')." ";
                        echo '<span class="entry-author-link" >';
                        echo '<span class="vcard author"><span class="fn">';
                        the_author_posts_link();
                        echo '</span></span>';
                        echo '</span>';
                        echo '</span>';
                    echo '</span>';

    Regards,
    Ismael

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.