Parse error: syntax error, unexpected T_FUNCTION
-
Hi everyone,
I was trying to remove the Posted by section on my blog, and had been researching Child Themes, but couldn’t quite figure it out. I think I made a stupid decision and tried to remove a piece of coding from Template-Tags.php. Now I’m getting this every time I try to open a page: Parse error: syntax error, unexpected T_FUNCTION on line 72
Here’s the area I changed:
* Prints HTML with meta information for the current post-date/time and author.
*/
function ys_magazine_posted_on() { <—-this should be line 72
$time_string = ‘<time class=”entry-date published updated” datetime=”%1$s”>%2$s</time>’;
if ( get_the_time( ‘U’ ) !== get_the_modified_time( ‘U’ ) ) {
$time_string = ‘<time class=”entry-date published” datetime=”%1$s”>%2$s</time><time class=”updated” datetime=”%3$s”>%4$s</time>’;Please help.
Thanks.
- The topic ‘Parse error: syntax error, unexpected T_FUNCTION’ is closed to new replies.