Forum Replies Created
-
AuthorPosts
-
Jonah
ParticipantHi Dan,
On line 279 of /wp-content/plugins/events-calendar-pro/events-calendar-pro.php you’ll find the function used to generate the Google cal link. And on line 164 of /wp-content/plugins/events-calendar-pro/template-tags.php you’ll find a filter for the tribe_get_gcal_link() function which calls the other function. Hopefully that points you in the right direction but let me know if you have any questions.
Regards,
JonahJonah
ParticipantHey John, you should be able to modify Joey’s code like so to no-index single day pages:
add_action('wp_head','tribe_dont_index_single_events');
function tribe_dont_index_single_events() {
if ( is_singular() || tribe_is_day() && get_post_type() == TribeEvents::POSTTYPE )
echo '';
}
Jonah
ParticipantHi Richard,
You’ll want to find where the_title() is called in your theme. It may be in page.php or header.php – look there first.
When you find the_title(), try replacing it with the following code:
if(tribe_is_month()) {echo 'Calendar Grid';
} else if(tribe_is_event() && !tribe_is_day() && !is_single()) {
echo 'Event List';
} else if(tribe_is_event() && !tribe_is_day() && is_single()) {
echo 'Single Event';
} else if(tribe_is_day()) {
echo 'Single Day';
} else {
the_title();
}
Try that first.
Jonah
ParticipantHi Allan, as Rob mentioned The Events Calendar w/PRO plugins should work fine (aside from the recurring events bug) with permalinks set to their default. What is the issue you have with the plugin when permalinks are set to the default?
When permalinks are set to the default you’ll need to access the event pages like so:
http://www.yoururl.com/?post_type=tribe_events&eventDisplay=month (grid/calendar view)
http://www.yoururl.com/?post_type=tribe_events (list view)So, you’ll need to modify your navigation to point to these URL’s and not the pages like you have now. Hopefully that helps… Let me know if you have any other questions.
Jonah
ParticipantHi Peter, not really. You can include custom PHP files in functions.php but you still need to edit functions.php to include the include 🙂 I usually include files in functions.php like so:
require_once('library/sidebar.php');
And the directory you put files in and the name of the include can be anything you want.
Jonah
ParticipantHi Kylie, you should be able to just target your footer and elements within in your CSS like normal. If you want to specifically target footer elements on the event pages you should be able to target them with the dynamic body classes we have in place for the various events pages like so:
.events-gridview #footer {
width: 960px;
}.events-list #footer {
width: 960px;
}etc…
Does that help?
Jonah
ParticipantHi Thomas, it looks like you still have old versions of the plugin CSS and templates. Any of the pre 2.0 overrides you had done (CSS and template files in an ‘events’ folder in your theme) will need to be updated or you can just get rid of the overrides and this will allow the plugin to use all the new templates and CSS automatically. You might want to try that first as I’m sure it will resolve a lot of the styling issues you’re seeing. You can do this by simply renaming the ‘events’ folder to ‘events-old’ or something like that. And then you can go through piecemeal and bring back whatever customizations you had with the old CSS and templates.
I hope that helps but let me know if you have questions.
Jonah
ParticipantHey Dmytro, have you tried the obvious troubleshooting steps – disabling all other plugins and reverting to the Twenty Eleven theme to rule out plugin/theme issues?
Jonah
ParticipantHi Yazmin, I just logged into your site and see that you’re running version 2.0.2 of the base plugin and 2.0.1 of the PRO plugin. Before we go any further can you please update both of these because there are many bug fixes which may likely resolve these issues. Please follow the standard upgrade procedure by backing up your site fully beforehand and then run the upgrade.
Let me know if this resolves the issue or if it’s still a problem and I’ll take another look.
Thanks,
JonahJonah
ParticipantHi Kylie, got a link I can take a look at?
Jonah
Participant… do wrap it in proper PHP tags as necessary too 🙂
Jonah
ParticipantHi Alan,
All you have to do is put:
echo term_description();
in your gridview.php file – first make a copy from /wp-content/plugins/the-events-calendar/views/gridview.php and place in an ‘events’ folder in your theme.
I hope that helps!
Jonah
ParticipantHi Robert, not sure about the answer to this one either. I’ll need to ask one of the other devs. Stay tuned.
Jonah
ParticipantHi Patti, this should do it: https://gist.github.com/2026688 – just copy that in single.php for the whole date/time block that’s there now. Make sure you’re overriding single.php too by placing a copy in an ‘events’ folder in your theme 🙂
You’ll notice in the code that it will first check to see if the start time/end time are different and if they are, then it uses the first block of code displaying the event date and start time/end time like you wanted. Otherwise, if the times are equal (i.e. not set), then it will just display the date.
If you need to tweak the date/time any more, the PHP date() reference is great: http://php.net/manual/en/function.date.php
Jonah
ParticipantHi Lynn,
Yep you can do this and it’s not too bad of a modification but will involve diving into some code 🙂
First fire up your functions.php file and paste in the following: https://gist.github.com/2026611
Those two actions will first remove the default events.js file and then register a new custom events.js that we’re about to create.
Next, find /wp-content/plugins/the-events-calendar/resources/events.js and place a copy of it in an ‘events’ folder in your theme.
Finally, you’ll want to comment or remove out lines 8-26. Probably easiest just to remove those lines since you can always reference the original core file as a backup.
Also, if you want to remove the popups for the mini sidebar calendar just remove lines 28-46 in events.js and that will do it.
One thing to note with this approach is that as there are changes to the scripting in the plugin, there may be things that will end up not working in the future. Because you are deregistering the events.js file the plugin supplies and if there are changes to this necessary for functionality, you won’t get those unless you know where to look 😉
I hope that helps and let me know if you have any questions.
-
AuthorPosts
