Forum Replies Created
-
AuthorPosts
-
November 20, 2017 at 1:00 am in reply to: remove tribe-events-nav-previous if event has past #1386959TristanParticipant
Hi Jennifer,
Thank you for the info. I shall have a play and see what I can come up with.
Best wishes
Tristan
TristanParticipantHi Cliff,
My deepest thanks, this is the route I have taken I am still baffled by the default date issue but will relook at this once we remove the force date function in early April.
I should also add we have done a lot of bespoke changes along the way ourselves as we are attempting to push the limits of the calendar far beyond what it was ever designed for, is an interesting journey.
Again my deepest thanks for your insight and help
Tristan
TristanParticipantHi Cliff,
We have a function to only display April 2017 onwards
function tribe_force_event_date( WP_Query $query ) {
// Don’t touch single posts or queries other than the main query
if ( ! $query->is_main_query() || is_single() ) {
return;
}// If a date has already been set by some other means, bail out
if ( strlen( $query->get( ‘eventDate’ ) ) || ! empty( $_REQUEST[‘tribe-bar-date’] ) ) {
return;
}// Change this to whatever date you prefer
$default_date = ‘2017-04-01’;// Use the preferred default date
$query->set( ‘eventDate’, $default_date );
$query->set( ‘start_date’, $default_date );
$_REQUEST[‘tribe-bar-date’] = $default_date;
}add_action( ‘tribe_events_pre_get_posts’, ‘tribe_force_event_date’ );
This will be removed once we get to April which may or may not solve the problem.
Ultimately we would like two calendars but am aware this is not possible so am using one via the shortcode system and the other i was going to use this url
https://thewhiteisle.co.uk/ibiza-clubbing-calendar/category/event/
However I get the 2006 date issue which if can be solved would work for us.
My original question was asking could an event category (in this case boat-party) be excluded from showing in the main calendar but shown in the short code versions however the more I am understanding how the calendar works I guess this is not an option.
I hope that makes sense.
And thank you for looking at this problem for us.
Tristan
TristanParticipantHi Cliff,
I completely understand and possibly I can solve through our own development if you can answer this question.
Where does the event calendar pull this date from “October the 8th 2006” as its default date as if we can manipulate this we can use the extended url system we believe IE instead of
https://thewhiteisle.co.uk/ibiza-clubbing-calendar/
we can use
https://thewhiteisle.co.uk/ibiza-clubbing-calendar/category/event/
which in some views defaults to the date of 8/10/2006.
As an example if you go from this url
https://thewhiteisle.co.uk/ibiza-clubbing-calendar/category/event/list/
and click month view from the bar it goes to this url https://thewhiteisle.co.uk/ibiza-clubbing-calendar/month/?tribe-bar-date=6-10-08
I hope that makes a little more sense.
Tristan
TristanParticipantHi,
I should have added I tried doing the links by category/event for our main calendar which achieves the month view we are looking for (IE it doesn’t show certain events as we would like), however it has some very strange results with the dates when going between month, list and day view.
It defaults back to a date of October the 8th 2006 which may mean something to someone.
Thank you
Tristan
February 14, 2017 at 10:36 am in reply to: Bottom navigation on click jumps to top of the page #1234731TristanParticipantHi all,
After much testing we found out what the issues is.
We used this code in our theme functions file to display an intro to just the month view on the calender.
add_action( ‘tribe_events_before_html’, ‘custom_events_before_html’ );
function custom_events_before_html() {
// Check if displaying month view
if ( tribe_is_month() ) {
echo ‘Your text goes here!’;
}}
We have now removed this code and hard coded our into into our own theme template for the month view and both the top and bottom navigation works as should do.
I hope this helps others
Tristan
TristanParticipantHi Barry,
You sir are a legend worked perfectly.
A great way to reduce the loading time and overall size of the page.
Thank you so so much
Tristan
February 13, 2017 at 1:00 pm in reply to: Bottom navigation on click jumps to top of the page #1234035TristanParticipantHi Nico,
I can confirm the top links work perfectly.
We added them with this piece of CSS as found in the knowledgebase.
.tribe-events-month #tribe-events-header .tribe-events-sub-nav .tribe-events-nav-next a, .tribe-events-month #tribe-events-header .tribe-events-sub-nav li {
display: block;
}I have just removed this code and the bottom links do not work at all.
Not sure that was very helpful sorry.
Tristan
TristanParticipantHi Brook,
I just spotted it too seems we all missed that one.
Yes I believe this will solve my problem.
Again my deepest thanks
Tristan
TristanParticipantHi Brook,
Thank you for confirming my findings on this issue.
I would just prefere to disable it on the widget tbh. Having the actual single event information displaying correctly in Google search I see as a plus.
I will have a look at the widget code and modify to suit.
Thank you so much for your help.
Tristan
TristanParticipantHi All,
I worked out is it due to the list view widget being enabled in the side bar and it is pulling the data from there i belive.
Something to investigate further.
Thank you
Tristan
TristanParticipantHi Nico,
Worked as you said it would however as you also said makes very little difference.
Thank you so much.
Tristan
TristanParticipantHi,
I solved the problem by removing this close div </div><!– #tribe-events-content –> on each page as required.
I guess its purely down to my theme.
Best wishes
Tristan
December 24, 2016 at 12:43 am in reply to: Can you add a short code to single venue view page #1210228TristanParticipantHi Geoff,
Thank you, as I thought and I shall have a play around with the code and see what can be done.
Best wishes
Tristan
-
AuthorPosts