Home › Forums › Calendar Products › Events Calendar PRO › Syntax errors when inserting snippets into functions.php
- This topic has 3 replies, 4 voices, and was last updated 9 years, 5 months ago by
Toby Jacobs.
-
AuthorPosts
-
October 9, 2016 at 4:36 am #1174214
Toby Jacobs
ParticipantHello,
I’m trying to customise some titles. I’ve followed the instructions on these two pages:
https://theeventscalendar.com/knowledgebase/url-as-word-button/https://theeventscalendar.com/knowledgebase/altering-or-removing-titles-on-calendar-views/After inserting the snippets into my themes functions.php file I get a syntax error “unexpected T-string…”
I’ve researched the problem and had a play around… I can not seem to fix the issue so have hit a bit of a dead end. My functions.php file is in the ‘child-theme’ folder of my theme… not sure if that affects anything?
Any tips on what’s causing the problem would be greatly appreciated.
Cheers
Toby
October 9, 2016 at 10:24 am #1174278George
ParticipantHey Toby,
Thanks for reaching out.
I was not able to produce any syntax errors with those snippets, so something in your process of copying and pasting the code might be the cause of the issues.
We cannot help with custom code, as per our support policy here. With that in mind, we cannot help troubleshoot custom code either.
However, I’m still glad to at least try and help here before closing this thread outright.
1. Using the code in your child theme’s functions.php file should not be a problem.
2. Please add both snippets to your functions.php file such that the syntax errors you report arise.
3. Then, go to http://gist.github.com and paste the ENTIRE, UN-EDITED functions.php file in to a Gist there. Publish the Gist, and share a link to it here.
4. Then, go to the front-end of your site where the syntax errors show up. Copy and paste the COMPLETE, UN-EDITED errors that pop up. Then go back to http://gist.github.com and make a second Gist with the full text of those errors in it.
☝️ With this information, I’ll be able to take a closer look here and try to spot the error. 😀
Thanks!
GeorgeOctober 31, 2016 at 9:35 am #1185280Support Droid
KeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘Syntax errors when inserting snippets into functions.php’ is closed to new replies.
