• Resolved justinrobbins

    (@justinrobbins)


    Hi

    WordPress novice here. I have created a child theme of BHost to run my site: https://fit2communicate.com/. I wanted to remove the ‘Posted In’ and author details from posts and after searching through this forum looked into the template-tags.php (inc/template-tags.php) file.

    I took a copy paste of the code before changing anything. Once I changed what I thought would fix the issue I tried and it didn’t – I just got the error message:

    Parse error: syntax error, unexpected ‘edit_post_link’ (T_STRING), expecting ‘{‘ in /home1/commsess/public_html/fit2communicate.com/wp-content/themes/bhost/inc/template-tags.php on line 19

    I put the code back as it was but I am still getting this error on the site and am now stuck.

    Thanks in advance for any help you can give me.

    Justin

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello justinrobbins,

    Their is syntax error of missing ‘{‘ can you please check your /template-tags.php file once.

    Thanks

    Thread Starter justinrobbins

    (@justinrobbins)

    I can’t access any of the files as I am locked out of the admin function.

    As I understand I need to replace the fle via FTP?

    But I can’t find the file to replace in my file structure.

    Thread Starter justinrobbins

    (@justinrobbins)

    Problem solved now – I re-uploaded the template-tags.php file via FTP and all is now back online. Thanks anyway.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘template-tags.php issue’ is closed to new replies.