WordPress.org

Ready to get started?Download WordPress

Forums

WP-PageNavi
wp-pagenavi css is used when no page navigation is displayed (4 posts)

  1. wpkos
    Member
    Posted 2 years ago #

    When no page navigation is needed (all selected posts are on one page), wp-pagenavi is not displaying. It's OK. But wp-pagenavi css file is still included in header.

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

  2. scribu
    Member
    Plugin Author

    Posted 2 years ago #

    Yeah, the problem is that there's no way of knowing beforehand, especially when query_posts() comes into play.

  3. scribu
    Member
    Plugin Author

    Posted 2 years ago #

    The two possible solutions both involve loading the stylesheet after the call to wp_pagenavi():

    a) use javascript to insert the stylesheet in the head (ugly).

    b) output the stylesheet directly in the body (doesn't work for older browsers).

  4. wpkos
    Member
    Posted 2 years ago #

    I got it, thanks for the answer.
    Then it's better to include page navigation styling to main stylesheet.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic