Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #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,

    #1082383

    Hey 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,
    Mike

    #1083190

    Hi 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?

    #1083387

    Hi,
    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; 
    } 

    2019-03-26-223134
    I also tried to find a way to add the avia-post-nav to the event pages but could not.

    Best regards,
    Mike

    #1084284

    I 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.

    #1084301

    can 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 1 year, 2 months ago by  Guenni007.
    #1085139

    Hey Guenni007,

    Thanks for your help, but unfortunately it doesn’t work, even though I believe that the taxonomies are correct.

    Any ideas?

    #1085191

    is 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 wrong

    #1085586

    I’m sorry, I don’t understand your last message. Was it directed to me or to the Enfold guys?

    #1085716

    We 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

    #1086081

    Hi,

    @blancocapell

    Thank you for using enfold – and thanks for reporting this.

    @guenni007

    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

    https://github.com/KriesiMedia/enfold-library/blob/master/temp_fixes/Enfold_4_5_5/Events%20Calendar%20Fix/config.php

    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ünter

    #1086132

    Hi Günter, thank you very much.

    I understand this fix is going to be applied in the next version of Enfold, right?

    #1086215

    Hi blancocapell,

    Glad we could help :)

    Yes, the fix will be included.

    Best regards,
    Victoria

Viewing 13 posts - 1 through 13 (of 13 total)

You must be logged in to reply to this topic.