Okay
  Public Ticket #3636327
Footer
Closed

Comments

  •  1
    retake7 started the conversation

    Hello, I do not find where to addres (link) the good page to this kind of footer (see the pict). For now it adresses a specific portfolio category... Where should I find this?

    Attached files:  Capture d’écran 2024-04-26 à 18.28.55.png

  •  1,558
    Laborator replied

    Hi there,

    To set a custom URL go to Laborator > Theme Options > Portfolio Settings > Single Page and follow the instructions below:

    medium
    (view large version)

    Best regards,
    Laborator Team


      Documentation         Join Kalium Users Group

  •   retake7 replied privately
  •  1,558
    Laborator replied

    Hi there,

    I have not completely understood your question, are you talking about these prev/next:

    medium
    (view large version)

    Do you want them to be reverted? Do you want the previous to go back while the next to go further?

    Best regards,
    Laborator Team


      Documentation         Join Kalium Users Group

  •  1
    retake7 replied

    Hello, and thank you for this, yes I'm talking about those 2 arrows.

    I want them to go to the next Post for the right button /and revert for the left, 

    as I think it should do. Now it's not...  

    The right arrow for instance disappears sometimes... I do not understand the logic of their links...

  •  1,558
    Laborator replied

    Hi there,

    The logic of this prev/next navigation is based on WordPress pagination logic so I was assuming you were talking about that, now I have added the following code to functions.php of you child theme:

    // Swap next/prev adjacent links
    add_filter(
        'kalium_adjacent_post_link_args',
        function ( $args ) {
            if ( $args['prev'] ) {
                $args['prev'] = false;
                $args['next'] = true;
            } else {
                $args['prev'] = true;
                $args['next'] = false;
            }
            
            return $args;
        }
    );
    

    And now it has inverted the arrows functionality, also the reason why some times the next or previous is "missing" is because that item is the last or the first and there is no other item to navigate to. For example if you are viewing the first item, there will be no "previous" because it is the first item, this is because the "looping" functionality is disabled in your theme options.

    Best regards,
    Laborator Team


      Documentation         Join Kalium Users Group