I need help – If there is Brook better

Home Forums Calendar Products Events Calendar PRO I need help – If there is Brook better

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1181799
    BRUNO HERMES
    Participant

    Hi there,

    I wrote in my last ticket tis: there is an issue when you search for an event.
    Example: you search for an event called “juan pablo” (take a look) http://screencast.com/t/qpxJiDLBBl
    And then nothing happens, it shows you the calendar of the actual month. This is really important for the use of my Events. My visitors need to have an easy and effective way to find the event the want, even the old ones.

    Brook answered me:

    This should be doable by inserting the following code into your theme’s functions.php :

    /**
    * Removes time
    */
    function tribe_remove_time_list_view( $settings ) {
    if( ! tribe_is_upcoming() && ! tribe_is_past() ) return $settings;
    $settings[ ‘time’ ] = false;
    return $settings;
    }
    add_filter( ‘tribe_events_event_schedule_details_formatting’, ‘tribe_remove_time_list_view

    So I did this, and it did a fatal error to my page,

    this one:
    Parse error: syntax error, unexpected ‘;’ in /home/brunohm/public_html/wp-content/themes/Newspaper/functions.php on line 166

    I contacted my host support, and the problem was when I pasted that code, seems it caused conflict with the theme.

    Can you help me to fix this with out killing my web site?

    #1182629
    Brook
    Participant

    Howdy Bruno,

    I am sorry that code gave you issues. Our forums mangled the code I shared, so when you copied/pasted it was no longer valid code. Sorry again.

    To make this easier I just converted that code to a miniature plugin: tribe_remove_time_list_view If you download and install/activate this plugin, just like you would any other plugin, it should hide the time in the single view as expected. No need to mess with the code.

    Of course if you have not already you will want to remove the code you inserted into your theme’s functions.php.

    Does that all make sense? Did that plugin work?

    Cheers!

    – Brook

     

    #1182830
    BRUNO HERMES
    Participant

    Thank you Brook

    #1182973
    Brook
    Participant

    You are most welcome Manuela!

    – Brook

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘I need help – If there is Brook better’ is closed to new replies.