Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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,
    Vera

    #1350730

    Hi 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,
    Nikko

    #1350935

    Hi 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,
    Vera

    #1351139

    Hi 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,
    Nikko

    #1351207

    Hi Nikko,

    great. That works.
    Thank you.

    Best regards,
    Vera

    #1351220

    Hi,

    We are glad that Nikko could help!

    Let us know if you have any other questions and enjoy the rest of your day :)

    Best regards,
    Yigit

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘styling prev/next post navigation’ is closed to new replies.