Pau

Forum Replies Created

Viewing 15 posts - 31 through 45 (of 87 total)
  • Author
    Posts
  • in reply to: The event calendar pro slow down wordpress #1179019
    Pau
    Participant

    Hi 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

    in reply to: remove 'ALL DAY' block from Day view #1173109
    Pau
    Participant

    Great, many thanks

    in reply to: show events feed on homepage #1167902
    Pau
    Participant

    Yey!
    ๐Ÿ™‚

    in reply to: list view widget margins and paddings, and more #1165884
    Pau
    Participant

    Oh, 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%;
    }

    in reply to: list view widget margins and paddings, and more #1165880
    Pau
    Participant

    Hi 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

    in reply to: show category with colour above event title views #1165353
    Pau
    Participant

    This reply is private.

    in reply to: show category with colour above event title views #1164894
    Pau
    Participant

    to be very clear, see next attached image

    in reply to: show category with colour above event title views #1164828
    Pau
    Participant

    Hi 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!

    in reply to: show category with colour above event title views #1164504
    Pau
    Participant

    Dear 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?

    in reply to: show category with colour above event title views #1163255
    Pau
    Participant

    Thanks Nico, looking forward to it!

    ๐Ÿ™‚

    in reply to: show category with colour above event title views #1162279
    Pau
    Participant

    Hi 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

    in reply to: Events photo view make default 2 columns #1160977
    Pau
    Participant

    Hi George, many thnaks

    in reply to: show category in event title #1160721
    Pau
    Participant

    Oh, the joy!
    thanks
    x

    in reply to: show category in event title #1160510
    Pau
    Participant

    Hi 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 = ' &raquo; '; // 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
    ๐Ÿ™‚

    in reply to: remove doted line below list view #1160378
    Pau
    Participant

    yep, i worked, many thanks

Viewing 15 posts - 31 through 45 (of 87 total)