• Resolved Peter Hubbard

    (@pete1889)


    Hi,
    I am using the Events Calendar plugin (free version) on my test website. I have had feedback that it is not obvious that you should click on the Event title in the list view in order to see the single post details. I added some guidance on the page using the “Add HTML before Event content” feature but unfortunately the text appears on the list and single post views. I only want it to appear on the list view. Any thoughts on how I can achieve this?
    Thanks
    Pete

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Peter Hubbard

    (@pete1889)

    Hi,

    Saw an article that suggested adding a <DIV> into the list.php file.
    This worked so happy to go with this solution unless anyone has an alternative way of doing it.

    Thanks
    Pete

    Plugin Support tristan083

    (@tristan083)

    Hey, @pete1889 !

    Glad to learn you’ve found a solution! An alternative to this is appending a filter (below) to your theme’s (or child theme’s) functions.php file.

    add_filter( 'tribe_events_before_html', 'no_html_before_single', 10, 2 );
    function no_html_before_single( $before, $view = null ) {
    	// If we're on a single event, then bail.
    	if ( tribe_context()->get( 'view_request' ) === 'single-event' ) {
    		return "";
    	}	
    	return $before;
    }

    I hope that helps.

    Thread Starter Peter Hubbard

    (@pete1889)

    Thanks Tristan, that’s a good approach as well. I’ll give it a try.

    Plugin Support Abz

    (@abzlevelup)

    Hi @pete1889, good one. Please keep us posted, and feel free to tag @tristan083 if you have more questions. Have a great day.

    Plugin Support Abz

    (@abzlevelup)

    This thread has been inactive for a while, so we’ll go ahead and mark it Resolved. Please feel free to open a new thread if any other questions come up, and we’d be happy to help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Adding extra text to the Event List page’ is closed to new replies.