-
AuthorPosts
-
March 21, 2019 at 7:51 pm #1081542
Hi guys,
I remember having the arrows to go to the next and previous post also for The Events Calendar. Why don’t they show up now? I haven’t added any code to hide such arrows. Do I have to enable any setting?
This is my installation: https://www.naikare.es/taller/calligrafia-modernista/Thanks,
March 24, 2019 at 10:24 pm #1082383Hey blancocapell,
Sorry for the late reply, The Events Calendar uses it’s own prev & next navagation at the foot of the page, yours is being hidden via the tribe events css, please look in the Events options to display it or provide an admin login and we can assist.Best regards,
MikeMarch 26, 2019 at 6:29 pm #1083190Hi Mike,
I think that’s not correct. For example, in here you can see the arrows are showing: https://www.naikare.es/portfolio-item/projecte-fi-de-curs/
The source code contains the a elements with classes avia-post-nav.
But in the workshops (https://www.naikare.es/taller/calligrafia-modernista/) such items are not present. They aren’t hidden via CSS because they just simply don’t exist.Also, The Events Calendar doesn’t have the option to display such arrows or something similar.
Are the arrows working with The Events Calendar on a fresh Enfold installation?
March 27, 2019 at 5:26 am #1083387Hi,
The first page you linked to seems to be a portfolio page. The second page is a events page, on the events page the event plugin uses the elements: tribe-events-nav-previous & tribe-events-nav-next within the tribe-events-footer below the event.<ul class="tribe-events-sub-nav"> <li class="tribe-events-nav-previous"><a href="https://www.naikare.es/taller/enquadernacio-copta-5/"><span>«</span> Enquadernació copta</a></li> <li class="tribe-events-nav-next"></li> </ul>
The reason I thought it was hidden with a option was because of this class: tribe-events-visuallyhidden I installed the event calendar on my localhost and created some events and set up the other options so I could assist you.
As you said I could find no option for this and no solution on the event calendar site but I was able to display the prev – next nav with this css:#tribe-events-footer .tribe-events-sub-nav { display: block !important; }
I also tried to find a way to add the avia-post-nav to the event pages but could not.Best regards,
MikeMarch 28, 2019 at 9:30 pm #1084284I see.
Let’s try to go in a different direction. I’m trying to add some code so the arrows will show in the events. For this, I use this code:
add_filter('avia_post_nav_settings', 'avia_post_nav_settings_mod'); function avia_post_nav_settings_mod($settings) { if(is_singular('tribe_events')) { $settings['taxonomy'] = 'tribe_events_cat'; $settings['is_fullwidth'] = false; } $settings['same_category'] = true; return $settings; }
I took it from here: https://kriesi.at/support/topic/next-previous-custom-post-type-in-same-category/#post-734606
But still, it doesn’t work. Any ideas? Maybe there’s something wrong in the code and I can’t seem to see it.
March 28, 2019 at 9:59 pm #1084301can you try this in child-theme functions.php first to activate the post-nav vor tribe-events:
I do use a different event plugin so you have to know the taxonomie for that. Maybe your tribe_events_cat is correct:add_filter( 'avia_post_nav_settings', 'avia_post_nav_settings_mod', 10, 1); function avia_post_nav_settings_mod($settings) { if(is_singular('tribe_events')) { $settings['taxonomy'] = 'tribe_events_cat'; $settings['same_category'] = true; } return $settings; }
the one curly bracket was too early closed – i guess
- This reply was modified 5 years, 8 months ago by Guenni007.
March 31, 2019 at 6:55 pm #1085139Hey Guenni007,
Thanks for your help, but unfortunately it doesn’t work, even though I believe that the taxonomies are correct.
Any ideas?
March 31, 2019 at 10:30 pm #1085191is there a mismatch by changing filter name?
i read in 4.5.5 functions-enfold.php a lot of apply_filters_deprecated but that is in preparation to 4.5.6. – but maybe there is something going wrongApril 1, 2019 at 5:44 pm #1085586I’m sorry, I don’t understand your last message. Was it directed to me or to the Enfold guys?
April 1, 2019 at 9:53 pm #1085716We have done all what is on board for tips to influence the post navigation on tribe events.
Nothing worked. The last time – a lot of filters which are well known are renamed or deprected. Maybe we got this here too.Next Version of Enfold this filter will be named avf_post_nav_entries and avf_post_nav_settings
April 2, 2019 at 2:34 pm #1086081Hi,
Thank you for using enfold – and thanks for reporting this.
Thank you for your input and trying to solve the problem.
————————————————–
In fact tribe changed the way to query the adjacent events which broke the way we checked for existing links. Therefore we did not recognise that there are events and did not show the navigation (nothing to do with the deprecated filters which were introduced to find a consistent way of nameing our actions and filters).To fix the problem please replace enfold\config-events-calendar\config.php
with
The fix now also supports featured images for events in the navigation area like for posts.
Do not forget to make a backup for a fallback.
Best regards,
GünterApril 2, 2019 at 3:55 pm #1086132Hi Günter, thank you very much.
I understand this fix is going to be applied in the next version of Enfold, right?
April 2, 2019 at 7:25 pm #1086215Hi blancocapell,
Glad we could help :)
Yes, the fix will be included.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.