Forum Replies Created
-
AuthorPosts
-
February 26, 2016 at 4:27 pm in reply to: Is there a way of getting an ical feed for all events please? #1082774
Lee Branch
ParticipantDoh! Forgot I can just edit functions.php from CPanel’s File Manager.
I deleted just the first line of the code you gave me and re-saved:
<?php
…and the site’s working again.
I swapped the domain name for my client’s site in that URL you gave me, and added to my Google Calendar by adding the URL and it’s worked great, thank you.
Please could you let me know if this is a one-time sync – i.e. anything published at the time the ical feed is created/added to the calendar will be shown – or a continuously updated feed – i.e. if I add more events that take place in the next year will these be added to peoples’ calendars too?
Also, can I change the URL to http://yoursite.com/events/?ical=2&year-feed or http://yoursite.com/events/?ical=3&year-feed to get a longer time period? Or is the other code snippet set to 1 year only?
Thanks so much for your help,
LeeFebruary 26, 2016 at 4:09 pm in reply to: Is there a way of getting an ical feed for all events please? #1082768Lee Branch
ParticipantReally appreciate the assistance, but I added this and am now getting an error message and can’t access the site…
Oopsie.
Luckily I copied the contents of functions.php first as I thought it might kill it, but I chose crossing fingers instead of backing up. I’m off to find some FTP credentials to log in and fix it, here’s the error I got:
Parse error: syntax error, unexpected ‘<‘ in /home/sandown/public_html/wp-content/themes/bb-theme-child/functions.php on line 13
Here’s the contents of the original file:
<?php
// Defines
define( ‘FL_CHILD_THEME_DIR’, get_stylesheet_directory() );
define( ‘FL_CHILD_THEME_URL’, get_stylesheet_directory_uri() );// Classes
require_once ‘classes/class-fl-child-theme.php’;// Actions
add_action( ‘fl_head’, ‘FLChildTheme::stylesheet’ );I just pasted yours at the end and got the error above.
Any chance you could repost the code with this bit added? Cheeky I know but hey!
Thanks,
Lee -
AuthorPosts
