Forum Replies Created
-
AuthorPosts
-
Jonah
ParticipantHi Jim,
To load the calendar in an iframe you would just do something like this: https://gist.github.com/2763101
Then you would need to style the iframe accordingly to get it to be the right size and have any other specific styling you need.
It should work but I cannot guarantee there won’t be problems but at first glance it seems to work ok. I wouldn’t really recommend this approach though because everything in the iframe is not viewable by search engines.
Have you tried manually setting the page layout for the calendar grid page in Weaver Pro II? I’m not sure if this is an option but some themes will allow you to filter or manually set page layouts through a built in function.
I’ve got some basic conditional wrappers to test for the various event related pages that could help you with this. https://gist.github.com/2415009
I hope that helps but let me know if you have any other questions.
Cheers,
JonahJonah
ParticipantHey Lloyd,
You should be able to use something like this: https://gist.github.com/2722925
Modify the start/end dates as needed and all the markup/content in the loop and you should be good to go.
Let me know if you need anything else.
Cheers,
JonahJonah
ParticipantFYI, I did just log this as a proposed feature so cross your fingers 🙂
Jonah
ParticipantHi all,
Unfortunately this is not easily achieved and wouldn’t be possible now without hacking the core. But it’s too complicated to be able to provide a solution here so you would need to hire a developer if you needed this feature now.
It’s a great idea though and something you may want to request as a feature in an upcoming release. I know we’ve had other users request the ability to include additional fields in the form (which we don’t have the ability for now either) and this could be something that could go along with that functionality.
Sorry I cannot offer more here!
– Jonah
May 17, 2012 at 7:41 pm in reply to: Events post list view and calendar grid view in post category #19360Jonah
ParticipantHi Javier,
To get event meta to show in the post meta area for the category view in your theme, you will need to modify the category loop and add any specific events info you want. This is outside of the customization we can help you with but I can point you in the right direction and that’s what you’ll need to do.
To get the gridview appearing in your categories you could either use our calendar widget, placing it in the sidebar for your category page or you could include the gridview file via PHP like so:
include('wp-content/plugins/the-events-calendar/views/gridview.php');
…but some of the functionality may not work the way you want (like the prev/next links) and you will need to work on customizing this yourself.
I hope that helps! Good luck!
– Jonah
Jonah
ParticipantHi James, I’ve just modified our FAQ on setting the language with more specific details on how to actually create the files and set the language: https://theeventscalendar.com/faq/can-i-change-the-language-that-the-content-of-my-calendar-appears-in-on-the-site/ – check it out, that might help you…
I think what you’ve got to do is rename your .po file to be something like tribe-events-calendar-en_EN.po – you’ll need to load this back into PoEdit to resave and regenerate the .mo file and then in your wp-config.php set the WP_LANG like so: define(‘WPLANG’, ‘en_EN’);
Resave your permalinks as well and that should work. Let me know if you are still running into troubles.
Cheers,
JonahMay 17, 2012 at 4:50 pm in reply to: List a category except the shows that are Hide From Upcoming Events List #19354Jonah
ParticipantHi Javier,
All you need to do is pass in ‘eventDisplay’=>’upcoming’ as an argument and this by default hides those events with the “Hide From Upcoming” checked.
I hope that helps but let me know if you need anything else.
Cheers,
JonahJonah
ParticipantHi there,
Make sure events are associated with any of those 4 categories, for instance I looked at this event: http://rudeetours.com/event/dolphin-test/2012-05-15/ – and it didn’t appear to be associated with the Creek Cruise category…
I did mention the prev/next links:
“The only downside to this approach is that the calendar prev/next links are going to take you outside of your specific tour pages and back into the main calendar page, showing the previous or next month with all categories… Unfortunately there’s no easy way around this that I know of so you’ll need to play around with things to get it working right.”On the sidebar issue this is more related to your theme and how it inserts sidebars. Depending on what Events Template you have set, you’ll want to go into that template and add the sidebar however your theme adds sidebars. You’ll need to change the layout via CSS specifically for that page.
Good luck!
Jonah
ParticipantHey TJ, what about just tapping into the .events-single body class and applying the necessary styling for your single events through that?
Jonah
ParticipantHi David,
I’m not sure I follow what you are saying. Can you provide an example?
Jonah
ParticipantHi Kelly, you had some syntax errors in the PHP so I’ve corrected those and the queries are working ok for me. Take a look at my comments on Github and try the queries again.
Cheers,
JonahJonah
ParticipantHi Kelly, can you please post your full code so I can try it out and adjust as needed. Please post the code @ http://pastebin.com / http://pastie.org or http://gist.github.com
Thanks,
JonahMay 16, 2012 at 12:21 pm in reply to: Calendar page title shows title of an event and won't change #19270Jonah
ParticipantHi Shawn,
First find out what you are using for your Events Template in Settings > The Events Calendar > Template. Then, you are going to need to find where your theme is executing the_title() – this could be in header.php, page.php or /wp-content/plugins/the-events-calendar/views/ecp-page-template.php or it could also be being set through a theme specific dynamic post header function… It’s impossible to say without looking at your code. Depending on what you’ve got set for the Events Template will determine whether you should look at page.php or ecp-page-template.php – if you’ve got the Default Events Template selected, then it’s ecp-page-template.php – if you’ve got the Default Page Template selected, then it’s page.php. It could also be another page template within your theme. This will help you narrow down where to look for the_title()
Once you’ve found where the_title() is executed, you’ll want to use these conditional wrappers: https://gist.github.com/2415009 – to help you conditionally set the title for any of the event related pages (look at the comments in the wrapper code). Basically you’re going to want to hard code the title for the calendar (gridview) page like so:
if( tribe_is_month() && !is_tax() ) { // The Main Calendar Page
echo 'Events Calendar';
} elseif( tribe_is_month() && is_tax() ) { // Calendar Category Pages
echo 'Events Calendar';
} elseif( tribe_is_event() && !tribe_is_day() && !is_single() ) { // The Main Events List
echo 'Events List';
} elseif( tribe_is_event() && is_single() ) { // Single Events
echo get_the_title();
} elseif( tribe_is_day() ) { // Single Event Days
echo get_the_title();
} elseif( tribe_is_venue() ) { // Single Venues
echo get_the_title();
} else {
echo get_the_title();
}
Pay attention to any specific code your theme may be using for the title too because you may want to wrap items in HTML and the like.
I hope that helps, sorry for the complicated answer but unfortunately there is no easy answer. This is how it needs to be done. Let me know whether or not that helps.
Cheers,
JonahJonah
ParticipantHi Javier,
You can’t create two single.php templates but what I would suggest is to create conditional code within single.php to determine how you want to do things differently for specific events. You could for example use the is_single() (http://codex.wordpress.org/Function_Reference/is_single) conditional and pass in the ID of the event you need to target and then use specific code for just that event. Or, you could also check for whether the event is in a specific category using has_term() (http://codex.wordpress.org/Function_Reference/has_term) and use specific code for events in that category. There’s lot’s of ways to this, it’s up to you to figure out the best one for your application. But this is what I would recommend, use the single.php file and use conditional code within to insert the code you need for specific events.
I hope that helps!
Cheers,
JonahJonah
ParticipantGreat to hear Melody! Let us know if there’s anything else we can help out with. I’m closing this thread accordingly 🙂
-
AuthorPosts
