Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #256886

    Hi,

    I have an issue with the arrow slider of the pages. The lateral arrow slide the entries by date of publication. How can I make them slide by category?

    Thanks for the help!

    #257013

    Hey MeryVi!

    Thank you for using the theme.

    Please add this on functions.php to sort the next or previous page navigation by category:

    function avf_same_category_navigation($settings) {
          if($settings['taxonomy'] == 'portfolio_entries')  $settings['same_category'] = true;  
          return $settings;
      }
    
      add_filter('avia_post_nav_settings','avf_same_category_navigation', 10);

    The downside is, it will only filter the current category.

    Cheers!
    Ismael

    #257020
    This reply has been marked as private.
    #257035
    This reply has been marked as private.
    #257061

    Hi!

    Please remove the code Ismael posted from functions.php file via FTP and add it right below following line

    'bitcoin' 		=> array( 'font' =>'entypo-fontello', 'icon' => 'ue92a'),
    
    ));

    I tried and there is no syntax errors

    Cheers!
    Yigit

    #257146
    This reply has been marked as private.
    #257156

    Hi!

    Unfortunately only way is editing file via FTP. I do not know your agreement but you should have all login credentials needed for FTP database etc.

    Best regards,
    Yigit

    #257159

    Ok thank you very much for the help!
    Best

    #257161

    Hey!

    You are welcome! We are waiting to hear from you

    Cheers!
    Yigit

    #257780

    Hey Yigit, I can’t find the line in functions.php

    ‘bitcoin’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue92a’),
    ));

    after which you suggested to insert Ismael’ code. Can I insert the whole code at the end of the functions.php?

    ‘bitcoin’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue92a’),
    ));

    function avf_same_category_navigation($settings) {
    if($settings[‘taxonomy’] == ‘portfolio_entries’) $settings[‘same_category’] = true;
    return $settings;
    }
    add_filter(‘avia_post_nav_settings’,’avf_same_category_navigation’, 10);

    Thanks for the help!

    • This reply was modified 9 years, 11 months ago by MeryVi.
    #258099

    Hey!

    Thank you for the update.

    Yes, you can insert the code at the very bottom of functions.php. It should work just fine.

    Cheers!
    Ismael

    #258910

    Sorry guys but the code for the navigation still gives an error I really don’t know why!

    • This reply was modified 9 years, 11 months ago by MeryVi.
    #259978

    Hi!

    Make sure you use the code Ismael posted here: https://kriesi.at/support/topic/page-arrow-slider-order/#post-257013 and make sure that the quotes use this symbol

    
    '
    

    and not

    Regards,
    Peter

    #259979

    Hi!

    If the code still doesn’t work please ask the freelancer to implement it for you – maybe he modified the files somehow and you must take care of some other code parts too.

    Cheers!
    Peter

Viewing 14 posts - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.