Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1339809

    Hi
    On this thread there is a code to change the direction of the portfolio grid side navigation.
    https://kriesi.at/support/topic/portfolio-arrows-issue/#post-262335
    Can you give me the correct code to put into the functions.php of my child theme?
    thanks
    Nancy

    #1339907

    Hey Munford,

    Thank you for the inquiry.

    You don’t have to edit the functions-enfold.php file directly. Just use the avia_post_nav_entries filter in the functions.php file and apply the next post or entry to the previous arrow and the previous post to the next arrow.

    add_filter( 'avf_post_nav_entries', 'avf_post_nav_entries_mod', 10, 2); 
    function avvf_post_nav_entries_mod($entries, $settings)
    {
        $entries['prev'] = get_next_post($settings['same_category'], $settings['excluded_terms'], $settings['taxonomy']);
        $entries['next'] = get_previous_post($settings['same_category'], $settings['excluded_terms'], $settings['taxonomy']);
    
        return $entries;
    }

    Best regards,
    Ismael

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