• Resolved marieservais

    (@marieservais)


    Hi, thank you for your plugin which is very useful ! Still one problem is bothering me.

    I am using the shortcode on my single post template, with the “previous-post” arrow (pointing left) aligned left, and the “next-post” arrow (pointing right) aligned right, in a row.

    The problem is that for the very first post, there is obviously no “previous-post” arrow and therefore the “next-post” arrow does not align right, but left !

    I tried to manage that with css and .wp-post-nav-shortcode #post-nav-next:first-child, but cannot get it right !

    I would be thankful for your help ??

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Jo4nny8

    (@jo4nny8)

    Hi

    thanks for the feedback. Can you provide a link to the site so I can do some debugging for you?

    if the site is not visible, then a screenshot may be sufficient.

    kind regards

    Thread Starter marieservais

    (@marieservais)

    Hi, sure, here’s the link to the page which exemplifies the problem:

    https://trecentosiena.com/en/siena-san-cristoforo-0506_n517-103/

    Thanks for your help !

    Plugin Author Jo4nny8

    (@jo4nny8)

    Not sure what’s happening but we should be able to override it with a little custom css.

    Please try the following:

    .wp-post-nav-shortcode {
    position:relative;
    margin-bottom:30px;
    }
    
    #post-nav-next {
    position:absolute;
    right:0
    }
    
    #post-nav-previous {
    position:absolute;
    left:0;
    }

    You can adjust the left and right positioning on the nave with X amount of px to move the arrows over if you need to.

    Thread Starter marieservais

    (@marieservais)

    This seems to have solved my problem, thank you very much !

    I just have another question: does the option to switch The Next / Previous display side offered on the admin panel work when using shortcode ?

    It did not seem to make a difference when I tried it…

    Thanks again ??

    Plugin Author Jo4nny8

    (@jo4nny8)

    Hi

    I didn’t build that option into the shortcode as there’s an option in the shortcode to hide previous or next navs and put the buttons where you like.

    I could provide a css fix for you to adjust them if required which would just mean altering the button config a little

    Thread Starter marieservais

    (@marieservais)

    Oh I see, I think I can figure that out… Thanks a lot, anyway !

    Plugin Author Jo4nny8

    (@jo4nny8)

    No problem, don’t forget to leave a review ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Next-post arrow does not align right on first post’ is closed to new replies.