-
AuthorPosts
-
May 5, 2022 at 10:48 am #1350597
Hi,
I would like to style the prev/next post navigation in the following sense:
1. have a fixed custom image (arrow left, arrow right)
2. without a fly out
prev/next post navigation with a fix image
Thank you for suggestions.
Best regards,
VeraMay 6, 2022 at 5:30 am #1350730Hi Vera,
Please add this CSS code in Enfold > General Styling > Quick CSS:
#top .avia-post-nav .iconfont:before { display: none; } #top .avia-post-nav { width: 60px; } #top .avia-post-prev .iconfont { background: url(https://website.com/wp-content/uploads/2017/02/arrow_prev.png) center center no-repeat; background-size: contain; height: 30px; width: 30px; } #top .avia-post-next .iconfont { background: url(https://website.com/wp-content/uploads/2017/02/arrow_next.png) center center no-repeat; background-size: contain; height: 30px; width: 30px; }Just replace http://website.com/wp-content/uploads/2017/02/arrow_prev.png and http://website.com/wp-content/uploads/2017/02/arrow_next.png with the correct URL of your arrow images, then adjust height and width as you see fit.
Also adjust the 60px width of the post nav as you see fit as well.Best regards,
NikkoMay 8, 2022 at 11:47 am #1350935Hi Nikko,
thank you for the code. It works fine except one thing: if the title should be kept visible on hover it works with the prev-button. The title of the next-button seems to be pushed away. Can you help me with that?
Best regards,
VeraMay 10, 2022 at 10:37 am #1351139Hi Vera,
Yes, please try to add this CSS code as well:
#top .avia-post-nav:hover { width: 280px; } .avia-post-prev .entry-info { margin: 0 1px 0 36px; } .avia-post-next .entry-info { margin: 0 36px 0 1px; }Best regards,
NikkoMay 10, 2022 at 5:49 pm #1351207Hi Nikko,
great. That works.
Thank you.Best regards,
VeraMay 10, 2022 at 6:01 pm #1351220 -
AuthorPosts
- The topic ‘styling prev/next post navigation’ is closed to new replies.
