WordPress.org

Ready to get started?Download WordPress

Forums

WP Single Post Navigation
[resolved] Isn't the plugin "reversed navigation"? (8 posts)

  1. poi3
    Member
    Posted 2 years ago #

    First of all, what a great ideia. I love the plugin!

    But isn't navigation "reversed"? Unless in USA the navigation occours like so by the plugin (left=forward; right=previous), at least here in Europe (Portugal) the right arrow it's for when we want to go forward and the left arrow it's for when we want to go back (previous).

    I will try to change the code to match right=forward;left=previous, but in anycase, maybe in a future version something like this could be considered as an option. It would mean having to build a settings painel, but i think it would be worth.

    In any case, great plugin :)

    http://wordpress.org/extend/plugins/wp-single-post-navigation/

  2. daveshine (David Decker)
    Member
    Plugin Author

    Posted 2 years ago #

    Hi there!
    Thanx for the feedback, much appreciated!
    I really know what you mean and was already discussed with a friend of mine for whom I developed the plugin. He wanted it that way, so I just did it. -- You only need to change to two code snippets which the link code from WP is in to reverse that :-).

    As you pointed out I also thought an options panel will be to much and just left it as it was. Maybe I will change the direction - but your request is the first official one to do that. Just needs more discussion I guess :-)

    Thanx again!
    -Dave :)

    P.S. Any more feedback is very welcomed of course :)

  3. poi3
    Member
    Posted 2 years ago #

    Hi,
    Yep, i changed those two lines that you're refering. As the plugin just do one thing very well, i think down the line it won't be necessary much of updating the code from you. Thous, it could be suficient only to include in the documentation how to change the behavior should one desire it without risking being overwrite in a future update that is not very likely. But if you want to add the option to a panel, more work for you that i won't oppose :-P

    For out of curisity, i asked a few friends of mine what's their perception in terms of site navigation when they see a left arrow and a right arrow. All said left to go back, right to go forward, and they didn't understood how that could be different for someone else. Like i said, it is maybe a cultural difference from our countries :)

    Anyway, you could see your plugin in action at phoouz.com (still in development) muah :b

    Cheers,
    Pedro Nave

  4. Truffledome
    Member
    Posted 2 years ago #

    Hi,

    I love the simplicity of the plugin, but could you tell me which two lines of code need to be edited to reverse the order of the navigation as it is the wrong way round?

    Many thanks,

    Ed

  5. Truffledome
    Member
    Posted 2 years ago #

    Don't worry, I figured it out. If anyone's interested copy this code into wp-single-post-navigation/wp-single-post-navigation.php

    // Add single post navigation links
    add_action( 'wp_head', 'single_prev_next_links' );
    function single_prev_next_links() {
    	if ( is_single() ) { ?>
    		<div class="wpspn-area">
    				<div id="wpspn-nextpost">
    				<?php previous_post_link( '%link', '&laquo;' ); ?>
    				</div>
    			 	<div id="wpspn-prevpost">
    				<?php next_post_link( '%link', '&raquo;' ); ?>
    				</div>
    		</div>
    	<?php }
    }
    
    ?>
  6. daveshine (David Decker)
    Member
    Plugin Author

    Posted 2 years ago #

    Hi all!

    With version 1.4 of the plugin, released on 2012-01-07 you can achieve this via your theme, without touching the plugin's code!

    See the plugin description and especially the FAQ section:
    - http://wordpress.org/extend/plugins/wp-single-post-navigation/
    - FAQ: http://wordpress.org/extend/plugins/wp-single-post-navigation/faq/

    I hope you enjoy the changes :)

    Thanx for using or trying out my plugin!
    -Dave :)

  7. Booya
    Member
    Posted 2 years ago #

    Hi David,

    This is what happened when I put that line of code in functions.php to reverse the direction of navigation -

    The direction of navigation did get reversed, but the arrows are pointing in the wrong direction. The arrows are pointing inwards when they should be pointing outwards.

    Here's my site: http://whatadumass.com

    Please help!

    Thanks!

  8. Booya
    Member
    Posted 2 years ago #

    Hey I solved this by following your directions in the FAQ of changing "laquo" to "raquo" and vice versa.

    Issue resolved.

    Thanks for the great plugin!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic