Forum Replies Created
-
AuthorPosts
-
Benedikt
ParticipantHello!
I had one idea – maybe there was a solution: could the auto-cleanup function, which removes old events from the database, be used to clean up old categories? The tool could remove the categories and ad a “old” category – thats it, that would fix the problem, and it would considerably change the amount of redundant categories.Benedikt
Benedikt
ParticipantHey there, thanks for clarification!
Well fix this by changing the start time to 23:59 h.Best!
BenediktBenedikt
ParticipantHello Andras, thanks for your Feedback!
Please find a screenshot attached with the time settings.
Best!
BenediktBenedikt
ParticipantThanks a lot for your feedback!
Ill have to think that through before I can say wat the next step will look like. Ill give you a hint within the next days.Best!
Benedikt
August 16, 2018 at 8:56 am in reply to: Cant switch off: Featured event always on top of month view #1599024Benedikt
ParticipantThanks, Ill give it a try.
All the Best
BenediktAugust 15, 2018 at 5:37 am in reply to: Cant switch off: Featured event always on top of month view #1597819Benedikt
ParticipantCorrect, I can uncheck “Sticky in Month View”, but still see the event as featured event on top of my month view.
Benedikt
ParticipantNope – Worked for me
–> Closed 🙂Benedikt
ParticipantNice, worked for me!
Benedikt
ParticipantOkay. Ill give that a try,
thanks!Benedikt
ParticipantDear Victor, thanks for your reply and for closing the copy of this threat!
I absolutely understand that there have to be limitations for the support of personalisation – so tell me if I got to far :). In the last weeks your support was able to help me with all of my requests, so Im very positive!
I need to change the background for certain venues, not for the event overview pages.
Venue x : Background X
Venue y: Background Y
Overview (all venues): background neutral.add_filter('body_class','conf_class'); function conf_class($classes) { $post_id = get_the_ID(); // I guess thats not needed anymore $v1 = '8995'; //venue ID 1 $v2 = '1444'; //venue ID 2 $venue = tribe_get_venue(); if ($venue == $v1 || $v2){ $venue = 'myVenue-' . $venue; // class name which is added to body $classes[] = $venue; return $classes; }else {return $classes;}} // if nothing has happened, go on and return the body classes as isMy problem still is: The “events overview pages” stick to one of those backgrounds and dont show a neutral background. The reason is simple: in my case the request for venue is connected to a post ID. I suppose WordPress asks for the venue of the first post in a row and pulls the background for the venue ID. That works on one venue only pages. Whenever we access an overview, the background for the first post venue is pulled – but thats not what I want :).
Sorry, nor my english or my programming skills are that good.
-
This reply was modified 7 years, 12 months ago by
Benedikt.
Benedikt
ParticipantUpdate: oaky, my code does not really make sense.
What I need to do:
I need to ask for the venue name before I can add the body class.
-> if is venue x? add body class x
-> if is venue y? add y
-> if is both add nothing
-> is “events” add nothing.How can I do that?
Something like this?
add_filter('body_class','conf_class'); function conf_class($classes) { $post_id = get_the_ID(); $v1 = 'Docks'; $v2 = 'Prinzenbar-Hamburg'; $venue = tribe_get_venue($post_id); if ($venue == $v1 ^ $v2){ $venue = 'myVenue-' . $venue; $classes[] = $venue; return $classes; }else {return $classes;} }-
This reply was modified 8 years ago by
Benedikt.
Benedikt
ParticipantHello there! Ill give it a try. Im not sure if thats what my customer wants, so lets wait what they say.
–> Close 🙂Benedikt
ParticipantHello there!
I dont know how to use the term request output, but the following worked for me:add_filter('body_class','conf_class'); function conf_class($classes) { $post_id = get_the_ID(); $venue = tribe_get_venue($post_id); $venue = 'myVenue-' . $venue; $classes[] = $venue; return $classes; }>> Thanks to Heinz Duschanek <<
Enables me to push the event-venue-name in to the body class. The venue based changes, seem to work on filtered event archive pages as well.
Is that a good solution, or will I be in trouble one day?
Benedikt
ParticipantHello there!
I dont know how to use the term request output, but the following worked for me:add_filter('body_class','conf_class'); function conf_class($classes) { $post_id = get_the_ID(); $venue = tribe_get_venue($post_id); $venue = 'myVenue-' . $venue; $classes[] = $venue; return $classes; }>> Thanks to Heinz Duschanek – /support/forums/users/hedu/ <<
Enables me to push the event-venue-name in to the body class. The venue based changes, seem to work on filtered event archive pages as well.
Is that a good solution, or will I be in trouble one day?
Benedikt
ParticipantHello there!
I dont know how to use the term request output, but the following worked for me:add_filter('body_class','conf_class'); function conf_class($classes) { $post_id = get_the_ID(); $venue = tribe_get_venue($post_id); $venue = 'myVenue-' . $venue; $classes[] = $venue; return $classes; }Enables me to push the event-venue-name in to the body class. The venue based changes, seem to work on filtered event archive pages as well.
Thats’s all right? -
This reply was modified 7 years, 12 months ago by
-
AuthorPosts
