Forum Replies Created
-
AuthorPosts
-
August 29, 2014 at 8:16 am in reply to: Add list of links with event names above calendar on events page #709102belisamaParticipant
Thanks for your response. What I actually want is all the events to be in a list at the top of the page. I created this by adding a widgetized area to the top of the content.php template. You can see the result here: http://adelineyogastudio.com/events/
However, when you click on “previous events” only the widgetized area and not the events display. If you refresh, everything displays correctly.
What I really wanted to do was to just add the list of posts directly to the content.php template without using a widget. I tried adding this code (based on the list-widget.php file) and it didn’t work: http://pastebin.com/7RdAUXHL.
Any suggestions would be greatly appreciated!
May 12, 2014 at 11:25 am in reply to: Change text from 'Events for' to 'Classes in' in month view #158238belisamaParticipantThanks so much! I am getting some kind of error. Not sure why. It was missing some brackets, so I added them in. This is what I tried:
add_filter( ‘gettext’, ‘events_to_classes’ );
function events_to_classes( $txt ) {
//Only override the text on month view
if( is_callable( ‘tribe_is_month()’ ) && is_callable( ‘tribe_is_week()’ ) && is_callable( ‘tribe_is_day()’ ) ) {
if( tribe_is_month() || tribe_is_week() || tribe_is_day() ) {
return str_replace( ‘Events for’, ‘Classes in’, $txt );
}
return $txt;
}
} -
AuthorPosts