Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter healthyongreen

    (@healthyongreen)

    Here is the part I commented out (just found the master of the file)

    function sparkling_posted_on() {
    $time_string = ‘<time class=”entry-date published” datetime=”%1$s”>%2$s</time>’;
    if ( get_the_time( ‘U’ ) !== get_the_modified_time( ‘U’ ) ) {
    $time_string .= ‘<time class=”updated” datetime=”%3$s”>%4$s</time>’;
    }

    (https://github.com/puikinsh/Sparkling/blob/master/inc/template-tags.php)

    You can restore original file via FTP.

    You tried to remove only part of that function and of course it resulted in fatal error. If you want to disable this function then you need to uncomment the entire function Starting from

    if ( ! function_exists( 'sparkling_posted_on' ) )

    all way down to:

    endif;

    Here are my second thoughts on this.

    Thread Starter healthyongreen

    (@healthyongreen)

    Thanks to you! 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Cannot log in wp-admin after changing template-tags.php file – please help :-)’ is closed to new replies.