Home › Forums › Calendar Products › Events Calendar PRO › mini calendar event links open in iframe?
- This topic has 6 replies, 2 voices, and was last updated 9 years, 4 months ago by Barry.
-
AuthorPosts
-
November 26, 2014 at 2:24 pm #899688sigurdur81Participant
Hello,
I have a few questions. I have gone through the forums and I have not found the solutions I am looking for. I am using the event rocket shortcode for the widget.#1 I saw that the hover option is not available in the mini calendar widget. Is it possible that when you click a date with an event it opens in a iframe with the available events?
#2 Another option would be that when you click a date with an event it redirects you to the event on the main calendar page.
#3 I need to find a way to make no events appear below the mini-calendar when clicking a date, I tried limit=”0″ in the shortcode: [event_rocket_calendar limit=”0″] and that did not work.
That will be all for now, but there might be something more when I continue to customize this great plugin.
Thank you
Sigurdur JuliussonNovember 26, 2014 at 3:01 pm #899724BarryMemberHi Sigurdur π
It’s important to note first of all that Event Rocket is a third party plugin which we do not support here on the Modern Tribe forums.
(…I happen to be the author of that plugin, but even so it isn’t part of the official Modern Tribe stable and it would be more appropriate to seek help in relation to it over on the wordpress.org forums).
Thinking of the calendar widget in general terms, though:
#1 I saw that the hover option is not available in the mini calendar widget. Is it possible that when you click a date with an event it opens in a iframe with the available events?
That would certainly be possible, but it would be a comparatively advanced customization which you would largely have to drive forward yourself.
A great starting point for this is our Themer’s Guide, which covers the basics of safely overriding and customizing plugin templates, and you may also be interested in our technical docs covering things like our tribe_get_events() helper (which would allow you to generate a list of events on a specific day).
#2 Another option would be that when you click a date with an event it redirects you to the event on the main calendar page.
Again, that’s definitely possible as a further customization – though you would probably want to link to day view rather than a specific event (unless you know for certain that only one event is taking place on a particular day).
The link for each day in the mini calendar grid can be overridden by using the tribe_events_the_mini_calendar_day_link filter hook.
I hope that helps – and good luck π
November 26, 2014 at 3:44 pm #899744sigurdur81ParticipantThe link for each day in the mini calendar grid can be overridden by using the tribe_events_the_mini_calendar_day_link filter hook.
Can you give an example for this adjustment for me? Or a little more detail and I will take it from there.
November 26, 2014 at 5:16 pm #899802BarryMemberFor sure – here is a minimal example:
add_filter( 'tribe_events_the_mini_calendar_day_link', 'alter_mini_cal_day_links' ); function alter_mini_cal_day_links() { // Get information about the current day $day = tribe_events_get_current_month_day(); // The date itself, ie "2014-12-31" $date = $day['date']; // If we have any events on this day $has_events = $day['total_events'] > 0; // Use the above if needed to craft your custom link return '<a href="some-url"> Text </a>'; }
November 27, 2014 at 4:19 am #900225sigurdur81ParticipantI am still not able to get the link thing to work.
I have made a copy of the single-day.php and moved it to my themes folder but I am not very good with php. Could you please explain where to put the code.
Another issue that I am trying to do is to get the :
$days_of_week = tribe_events_get_days_of_week(‘short’);
to show only one letter like: M T W T F S SNovember 27, 2014 at 5:02 am #900236sigurdur81ParticipantI am unable to find out how to remove the calendar title (EVENT CALENDAR)
November 27, 2014 at 6:46 am #900285BarryMemberHi Sigurdur,
Apologies for the confusion!
So the snippet I provided earlier would actually be added to something like your theme’s functions.php file – it would not typically be added to the single-day.php template or anything like that.
Another issue that I am trying to do is to get the :
$days_of_week = tribe_events_get_days_of_week(βshortβ);
to show only one letter like: M T W T F S SThis can also be filtered – rather like we did tribe_events_the_mini_calendar_day_link in the first snippet – and the hook to use is tribe_events_get_days_of_week π
I am unable to find out how to remove the calendar title (EVENT CALENDAR)
The widget settings let you control this – so simply visit Appearance > Widgets and delete the current title, then save the changes.
I don’t think there is too much more we can do to assist on this one, but if anything else does crop up please don’t hesitate to create new threads as needed (please do stick to one question/issue per forum thread where possible π ) and one of the team will be only too happy to help.
-
AuthorPosts
- The topic ‘mini calendar event links open in iframe?’ is closed to new replies.