belisama

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • belisama
    Participant

    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!

    belisama
    Participant

    Thanks 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;
    }
    }

Viewing 2 posts - 1 through 2 (of 2 total)