• Resolved Chad Bennett

    (@altsource)


    Hi i’m looking to remove the “Event Title” from the main event page, this would be the page which you land at after clicking on the individual event on the calendar to see more detail. Can anyone help with this please.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Joe Dolson

    (@joedolson)

    Can you share a link? The answer depends on whether you’re using search-friendly permalinks for My Calendar or not.

    Thread Starter Chad Bennett

    (@altsource)

    Hi Joe

    Please see link as follows: https://irishcruisingclub.com/events/

    If you click on the event on the 5th Feb for example, once the next page loads up, I don’t want the yellow box with title showing, as it looks like a repeat when the “SOUTH REGION LUNCH” is already mentioned below.

    Plugin Author Joe Dolson

    (@joedolson)

    Well, I’d argue that only looks like a repeat because the description of that event happens to repeat the title of the event; if you look at other events (e.g. https://irishcruisingclub.com/events/?mc_id=73), it isn’t repeated.

    However, the context you’re looking at is the single event title; you can eliminate that title element by using the filter ‘mc_single_event_title’, e.g.:

    add_filter( 'mc_single_event_title', 'my_custom_title', 10, 2 );
    function my_custom_title( $title, $event ) {
       return '';
    }
    Thread Starter Chad Bennett

    (@altsource)

    Hi Joe

    Many thanks for the reply, and yes you would be correct in saying it looks like a repeat because the description of that event happens to repeat the title of the event. The other event you mentioned, is not repeated because we started amending text to make it look correct.

    To use the filter you have provided, where would i insert this code?

    Many thanks for you help.

    Plugin Author Joe Dolson

    (@joedolson)

    Thread Starter Chad Bennett

    (@altsource)

    Joe

    Many thanks for this, it worked a treat. Can I ask one more favor, is possible to add something to the code to remove the colour bar and clock symbol?

    Regards

    Chad

    Plugin Author Joe Dolson

    (@joedolson)

    The color bar comes from the category color options. The clock symbol comes from CSS; you can customize that CSS, and that’s what I’d recommend.

    Thread Starter Chad Bennett

    (@altsource)

    Thanks for all your support on this Joe.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Events Detail Page’ is closed to new replies.