Forum Replies Created
-
AuthorPosts
-
April 23, 2018 at 5:15 am in reply to: Is there a way to place a text or banner over the image of past events automatic #1513560UlfParticipant
Thanks! that worked perfectly.
April 17, 2018 at 7:23 am in reply to: Is there a way to place a text or banner over the image of past events automatic #1509154UlfParticipantHi 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)
April 16, 2018 at 2:34 am in reply to: Is there a way to place a text or banner over the image of past events automatic #1507904UlfParticipantHi, 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/September 13, 2017 at 4:52 am in reply to: Mainmenu does not work on specific page with ”The events calender” #1348486UlfParticipantHi, 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.
UlfParticipantOk, 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 );
UlfParticipantOk, 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 );
UlfParticipantWell… 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.
UlfParticipantWould it work if i change “flexpaket” from a “tag” to a “category” instead?
UlfParticipantWell… 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/UlfParticipantAfter 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.
UlfParticipantCould 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.
-
AuthorPosts