WordPress.org

Ready to get started?Download WordPress

Forums

WP-PageNavi
Not working in RTL - Possible solution provided (2 posts)

  1. nabil_kadimi
    Member
    Posted 1 year ago #

    The page number order is still LTR on my RTL website.

    When using firebug, I can fix it by adding spacing after page numbers (of course the space is added before or after any wrapping html):

    Assuming this is the html:
    [1][2][3]

    The ordering is fixed if I add spaces:
    [1] [2] [3]

    The reason is that whenever the direction is, 123 will always be 123, it is not reverted if you are using an RTL language.

    http://wordpress.org/extend/plugins/wp-pagenavi/

  2. nabil_kadimi
    Member
    Posted 1 year ago #

    If I add a space after and before the link in core.php::232

    return "<a>get_url( $page ) ) . "' class='$class'>$text</a> ";

    and wrap any span in spaces, I get the right output.

    Sorry, this is not sane but it was hard to resist

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags