-
AuthorPosts
-
November 13, 2019 at 1:00 pm #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,
MNovember 14, 2019 at 12:37 pm #1156740Hey 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,
VictoriaFebruary 14, 2020 at 12:40 pm #1184468Hi Victoria,
At this post I add 3 bottons for the navigation.
What link should I give to the prevoius and next buttons?Thank you
February 15, 2020 at 6:40 pm #1184785Hi sere,
The buttons are added with the Advanced Layout Builder and the links should be added in code.
Best regards,
VictoriaFebruary 17, 2020 at 9:55 am #1185134Hi 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?February 18, 2020 at 1:38 pm #1185648Hi 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,
VictoriaFebruary 18, 2020 at 1:49 pm #1185655Hi,
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,
MikeFebruary 18, 2020 at 6:22 pm #1185763Thank 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
February 19, 2020 at 11:22 am #1185977 -
AuthorPosts
- You must be logged in to reply to this topic.