Ulf

Forum Replies Created

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • Ulf
    Participant

    Thanks! that worked perfectly.

    Ulf
    Participant

    Hi this sounds hopeful, but i feel that my knowledge in how to accomplish this is limited. I already have a custom singe-event.php in a child-theme. Would it be enough to modify only this file or do i need do modify any other file to make it work.

    I attach the single-event.php (hope that i could get a hint of what i should adjust)

    Ulf
    Participant

    Hi, and thanks for the reply, this could absolutly work and it sounds perfect that all the past events have a ”tribe-events-past” class, but would like to accomplish this on a single-event page and cannot find the ”tribe-events-past” class in the code.

    Is this class only in the months view? If this is the case how do I implement the necessary code to make this work on a singe-event page?

    An example of a past event at our site…
    http://www.varakonserthus.se/pa-scen/delat-ar-dubbelt/

    Ulf
    Participant

    Hi, i have now updated all the plug-ins and the theme but the problem remains. I have also fixed my settings so i share my system information.

    in reply to: Shortcode problem #1347362
    Ulf
    Participant

    Ok, i have inserted the following code, but the category is still visible in the dropdown list

    /* Tribe hide categories from filter */
    function tribe_modify_category_filter ( $values, $slug ) {
      
        if ( $slug != 'eventcategory' ) return $values;
      
        foreach ( $values as $key => $value ) {
      
            if ( $value['name'] == ’dans’ ) {
      
                unset( $values[$key] );
                  
            }
        }
      
        return $values;
      
    }
    add_filter( 'tribe_events_filter_values', 'tribe_modify_category_filter', 10, 2 );
    
    • This reply was modified 6 years, 8 months ago by Ulf.
    • This reply was modified 6 years, 8 months ago by Ulf.
    in reply to: Shortcode problem #1344761
    Ulf
    Participant

    Ok, i have tired it but it did not work for me. I try to exclude the category “dans”. Can you please check if my code is correct if i want to exclude the category “dans”

    /* Tribe hide categories from filter */
    function tribe_modify_category_filter ( $values, $slug ) {
     
        if ( $slug != 'eventcategory' ) return $values;
     
        foreach ( $values as $key => $value ) {
     
            if ( $value['name'] == ’dans’ || $value['name'] == 'Category Name 2' ) {
     
                unset( $values[$key] );
                 
            }
        }
     
        return $values;
     
    }
    add_filter( 'tribe_events_filter_values', 'tribe_modify_category_filter', 10, 2 );
    in reply to: Shortcode problem #1344402
    Ulf
    Participant

    Well… it works, but choosing this way will generate another problem. If i switch this tag to a category also means that it also will be shown in the filterbar. This is something i do not want.

    Im using categories to define our available music-genres and thats is the only categories i want to be shown in the filterbar.

    Is there a way to exclude some categories from the filterbar or a way to pick witch categories i want to be shown.

    in reply to: Shortcode problem #1343512
    Ulf
    Participant

    Would it work if i change “flexpaket” from a “tag” to a “category” instead?

    in reply to: Shortcode problem #1343020
    Ulf
    Participant

    Well… is sort of work. It views the right events, but not with the custom styling i want it to have.
    The event list should look like this page
    http://www.varakonserthus.se/pa-scen/

    in reply to: Slug issue when switching between list and month. #1317294
    Ulf
    Participant

    This reply is private.

    • This reply was modified 6 years, 10 months ago by Ulf.
    in reply to: Slug issue when switching between list and month. #1316827
    Ulf
    Participant

    After some more investigation I noticed that the slug changes(from english to swedish) as soon as either select a new date or apply any filter. That’s why I thought that it was happening on reload but the url had already changed and when hitting refresh it tried to load the swedish slug which does not work.

    in reply to: Slug issue when switching between list and month. #1316821
    Ulf
    Participant

    Could it be connected to the translation files that comes with the event calendar?
    It sometimes also happens when I just reload the page.
    If I am located at /events/month/ it sometimes redirects to events/månad/ which is the swedish translation.

    I also noticed language problems when displaying the month headers in the list view.
    First time a load the list view they are displayed in swedish if I then select a date and the page reloads they are displayed in english.

    As I said previously I am only interested in using one language. Is there a way to remove all other lang files then the swedish one?

    • This reply was modified 6 years, 10 months ago by Ulf.
Viewing 12 posts - 1 through 12 (of 12 total)