A hack to align paging navigation menu to center
This may help those users wanted to position plugin paging navigation menu to center.
Suggest theme creator to include it in the next version. :-) Under index.php, <?php // Next/Previous PAGE Links (on multi post pages) // in next_posts_link "next" means older if ( !is_single() AND !is_page() AND strpos($bfa_ata_location_multi_next_prev,'Bottom') !==false AND show_posts_nav() ) { if (function_exists('wp_pagenavi')) { echo '<div style="text-align: center;" class="wp-pagenavi-navigation">'; wp_pagenavi(); echo '</div>'; } else { |
Thanks, araneum.
|
Does this apply to the Page Navigation? I tried replacing this in two places but it didn't move the pagelist (HOME, ABOUT, ... etc) to the right, it stayed on the left... I would love to have that right aligned. Its somewhere in the rMenu style, but that's a little complex for me to change...
Thanks, Nils |
I prefer using the built-in HTML/CSS Inserts -> CSS Inserts since that way I can easily upgrade the theme whenever there are updates. Here's my suggested code to use there, based on what you'd suggested. It's really quite basic, but hey, I'm new to the whole CSS thing =P
HTML Code:
div.wp-pagenavi-navigation { |
I'm still having a hard time understanding where this code goes. I have been looking for a centering method for months now (since fall) and cannot figure out how to get it center. My blog is at http://www.nobodydanceshere.com/blog/ and I would like the navigation to be in the center.
I'm not completely dumb about scripts, so if you could perhaps tell me which CSS file it goes in and where that would be great. I tried to copy and paste directly into my index.php but it didn't work at all. Thank you so much. |
Quote:
Where exactly did you put this? I have no clue where these codes go... |
Quote:
|
I tried this and it didn't work. I guess my terms maybe wrong. I am trying to center the text and buttons for the page navagation and categories buttons on the page. It currently stays to the left.
I would like to use HTML/CSS Inserts if possible. |
There's confusion here about the meaning of "Page Navigation".
This thread is about the "Page 1,2,3 Next" Navigation between single Wordpress pages that the plugin Wp-PageNavi provides and which you can use to replace the default Previous/Next Page/Post navigation of Wordpress. And lctkw is right, use a HTML/CSS Inserts -> CSS Insert as suggested by him The horizontal dropdown Page Menu Bar is not what this thread is about To center that one see http://forum.bytesforall.com/showthread.php?t=122 post #19 |
All times are GMT -6. The time now is 05:07 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.