Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1156382

    Hi,

    Is it possible to place the next/previous links at the bottom of the single post?
    Please follow link in private content to see an example.

    Best,
    M

    #1156740

    Hey Malene,

    Well, we have them on the sides of the screen if enabled, but if you want to add them at the bottom, please have a look here:

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #1184468

    Hi Victoria,
    At this post I add 3 bottons for the navigation.
    What link should I give to the prevoius and next buttons?

    Thank you

    #1184785

    Hi sere,

    The buttons are added with the Advanced Layout Builder and the links should be added in code.

    Best regards,
    Victoria

    #1185134

    Hi Victoria,
    i know, but what link should I add to go always to prevoius and next post. I have added the links in every post or there is a link that always recalls the previous and the next?

    #1185648

    Hi sere,

    This is the code for the prev and next links:

    
    <?php previous_post_link(); ?>
    
    <?php next_post_link(); ?>
    

    You need to make a shortcode and add it to the Advanced Layout Builder.

    This way you can create a shortcode for the links

    If this is getting too complicated for you, you might want to hire a freelancer to do it for you.

    Best regards,
    Victoria

    #1185655

    Hi,
    Thank you for the screenshot and link, I see your custom red buttons for the next / previous, if you add a custom class or ID to these then you can add the next and previous links to them with this function:

    
    function custom_script(){
      ?>
      <script>
    (function($){
      $(document).ready(function(){
        var getprev = $("a.avia-post-nav.avia-post-prev").attr("href");
        var getnext = $("a.avia-post-nav.avia-post-next").attr("href");
        $(".woocommerce-product-details__short-description .avia-buttonrow-wrap a.avia-button:nth-child(2)").attr("href", getprev);
        $(".woocommerce-product-details__short-description .avia-buttonrow-wrap a.avia-button:nth-child(3)").attr("href", getnext);
    });
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'custom_script');

    This code example was successfully used for products in a shop that had custom buttons similar to yours, but it needs to be modified to work for you.
    After you add a custom class or ID we can assist further.

    Best regards,
    Mike

    #1185763

    Thank you Mike and Victoria,
    I’m not able to change this code, I thought it was easier to add a navigator between post.
    I will think of another way to do this.

    Thanks

    #1185977

    Hi,
    Very good then, please feel free to open a new topic if you have further questions about this.

    Best regards,
    Mike

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