Forum Replies Created
-
AuthorPosts
-
Pau
ParticipantHi all, I have the same issue (my โThe Events Calendar PRO: Cleanup recurring eventsโ is NOT active)
Since last update and since I’ve tried the new shortcodes to embed events in other pages, the site is VERY SLOW!
Can we confirm there’s not a problem with the latest (big) update?
Sorry and thanks
Pau
ParticipantGreat, many thanks
Pau
ParticipantYey!
๐Pau
ParticipantOh, it wasn’t so difficult after all (I leave it here for other people)
.tribe-mini-calendar-event .list-info {
margin: 10px 0;
display: inline;
line-height: 1;
float: left;
width: 100%;
}Pau
ParticipantHi George, many thanks
yes, I know about the limits of help; but sometimes is an easy answer that we, mortals, don’t know (lol)
the snippet for view more did work well, and will investigate on the margins
many thanks
September 16, 2016 at 1:35 pm in reply to: show category with colour above event title views #1165353Pau
ParticipantThis reply is private.
September 15, 2016 at 4:09 pm in reply to: show category with colour above event title views #1164894Pau
Participantto be very clear, see next attached image
September 15, 2016 at 1:09 pm in reply to: show category with colour above event title views #1164828Pau
ParticipantHi Nico, lol
yes, you are right, I tried that and works
BUT
I have the titles in the colour label and the categories as header title!! (see attached image)
It supposed to be the opposite; as it is, but the categories with their colour label, and the titles on the header (the client has put/written some categories with the title, but ignore that, you’ll have the idea)
kind of funny
can we fix that final issue?
many, many thanks!
September 15, 2016 at 3:20 am in reply to: show category with colour above event title views #1164504Pau
ParticipantDear Nico, thanks again,
The site crashes when I remove the previous code snippet:
// Prepends category name(s) to the event titles function tribe_events_title_include_cat ($title, $id) { $separator = ' » '; // HTML Separator between categories and title $cats = get_the_terms($id, 'tribe_events_cat'); $is_ajax = defined('DOING_AJAX') && DOING_AJAX; $is_truly_admin = is_admin() && !$is_ajax; if (tribe_is_event($id) && $cats && !is_single() && !$is_truly_admin) { $cat_titles = array(); foreach($cats as $i) { $cat_titles[] = $i->name; } $title = implode(', ', $cat_titles) . $separator . $title; } return $title; } add_filter('the_title', 'tribe_events_title_include_cat', 100, 2);and add the new one:
/* Tribe add category after the title in list views and list widgets */ function tribe_add_category ( ) { $cats = get_the_terms( get_the_ID(), Tribe__Events__Main::TAXONOMY); if ( empty($cats) ) return false; $cat_titles = array(); foreach( $cats as $i ) { $cat_titles[] = $i->name; } // adjust markup if needed echo '<p>' . implode(', ', $cat_titles) . '</p>'; } // you can also use tribe_events_before_the_event_title add_action( 'tribe_events_after_the_event_title', 'tribe_add_category' ); // you can also use tribe_events_list_widget_before_the_event_title add_action( 'tribe_events_list_widget_after_the_event_title', 'tribe_add_category' );(is ok because i did back up de functions.php and re-installed via FTP)
What could I be doing wrong?
September 13, 2016 at 1:15 am in reply to: show category with colour above event title views #1163255Pau
ParticipantThanks Nico, looking forward to it!
๐
September 9, 2016 at 2:58 pm in reply to: show category with colour above event title views #1162279Pau
ParticipantHi Nico, thanks!
I want to make this change across the site, mostly list and photo views (and maybe day).
the site is :
http://79.170.44.126/ref-spainculturescience.co.uk/
http://79.170.44.126/ref-spainculturescience.co.uk/events/
As you can see (apart from other issues to be solved later) is the categories and title get very confusing as they are
so (and I’m not asking about CSS) I would like to ‘separate’ the category from the title if that makes sense
Pau
ParticipantHi George, many thnaks
Pau
ParticipantOh, the joy!
thanks
xPau
ParticipantHi Geoff, how are you?
This is great, exactly what I need
Unfortunately, either I paste this on the wrong place or the code is not good
it comes with an error, and when tried the site crashed (I did back up, so all saved again)
This is the code:
<?php // Prepends category name(s) to the event titles function tribe_events_title_include_cat ($title, $id) { $separator = ' » '; // HTML Separator between categories and title $cats = get_the_terms($id, 'tribe_events_cat'); $is_ajax = defined('DOING_AJAX') && DOING_AJAX; $is_truly_admin = is_admin() && !$is_ajax; if (tribe_is_event($id) && $cats && !is_single() && !$is_truly_admin) { $cat_titles = array(); foreach($cats as $i) { $cat_titles[] = $i->name; } $title = implode(', ', $cat_titles) . $separator . $title; } return $title; } add_filter('the_title', 'tribe_events_title_include_cat', 100, 2);on Dreamweaver (yes, I know!) says 1st line is wrong…
any suggestions ( or how should i paste this on the functions.php?
Thanks for patience again
๐Pau
Participantyep, i worked, many thanks
-
AuthorPosts
