-
AuthorPosts
-
January 19, 2020 at 10:37 pm #1176148
Hi,
I‘ve set the max content width to 1200px on my site and expect the blogpostnavigation to be displayed within this container. However the prev and post toggle are displayed on the very side of the screen where they happen to be overlooked quiet often,
Furthermore the navigation is not displayed at all on small screens like mobile fones other than landscape mode.
I would like to have a blogpostnav on all screen within the selected Max container width.
Thanks in advance for your help.
Best regards,
woodyJanuary 20, 2020 at 8:21 pm #1176408Hey woodyskywalker,
Thank you for using Enfold.
Could you please attach a mockup of what you’re trying to achieve?
Best regards,
VictoriaJanuary 23, 2020 at 9:26 pm #1177885Hi,
please see the links to the requestet pics.
My website has a max width of 1200px.
On displays greater than 1200px, the nav (Prev/post) s of my Blog are outside this container.
On small screens they are not visible at all.I want them to be always displayed and within the max width of my website.
Regards woody
January 28, 2020 at 3:49 am #1178859Hi,
Thank you for the info.
That is the default layout of the post navigation in the theme. If you want to move it inside the container and below the post content, please follow the solution in the following thread.
// https://kriesi.at/support/topic/previous-next-links-on-single-posts/#post-1141679
Best regards,
IsmaelFebruary 6, 2020 at 9:45 am #1181976Hi Ismael,
thx for your reply.
I’ve removed the: echo $avia_post_nav; from the footer.php but couldn’t make the navigation reappear again via the loop-index.php.
I’ve put echo $avia_post_nav; in line 393. just above` echo ‘<footer class=”entry-footer”>’;
and added the quick css but that didn’t work for me.
Could you please specify:
We removed the post navigation from the footer.php file, then placed it back in the includes > loop-index.php file right at the very bottom of the post.
?Thanks in advance
BTW, the email notification does not work for me as well
February 10, 2020 at 7:09 am #1182948Hi,
Thank you for the update.
Instead of editing the includes > loop-index.php file, try to use the ava_after_content hook to insert the navigation below the post content.
add_action('ava_after_content', function($id, $context) { if($context != 'post') return; $avia_post_nav = avia_post_nav(); echo $avia_post_nav; }, 10, 2);Best regards,
IsmaelFebruary 10, 2020 at 9:35 am #1182968Hi Ismael,
thank you for having a lot of trust in my abilities.
But I do not have any clue, where and how to insert that code.
Does it belong in the wp-editor(i tried but failed) or do I have to modify a file of the theme?Would it make sense to provide sftp and wordpress logins to my website?
Thank you,
woodyFebruary 10, 2020 at 4:17 pm #1183117Hi woody,
You will need to use a child theme and add the code above to the functions.php file in the child theme.
Best regards,
VictoriaFebruary 14, 2020 at 12:49 am #1184356Thanks a lot Victoria,
it sure worked!
I only needed to find out, how to display the navigation on mobile screens.
Thanks to this post: https://kriesi.at/support/topic/loop-post-navigation-on-mobile/
it was no big issue:@media only screen and (max-width: 767px) { .responsive #top .avia-post-nav { display: block; }}Thanks again for your help. You may close the thread.
Best regards,
woodyFebruary 15, 2020 at 6:49 am #1184668 -
AuthorPosts
- The topic ‘Blogpost navigation’ is closed to new replies.
