Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

pagination styling

By: supportnwl on Oct 4th, 2012  |  syntax: None  |  size: 0.48 KB  |  views: 107  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. paste in your theme functions.php
  2.  
  3. function em_change_pagination($string){
  4.         if ( strpos($string,'<') ){
  5.                 $string = str_replace("<","< Previous page",$string);
  6.         }
  7.         if ( strpos($string,'>') ){
  8.                 $string = str_replace(">","Next page >",$string);
  9.         }
  10.         $string = "<div class='em_pagination_link'>".$string."</div>";
  11.        
  12.         return $string;
  13. }
  14. add_filter('em_paginate','em_change_pagination',10,1);
  15.  
  16. paste in your theme style.css
  17.  
  18. .em_pagination_link {
  19.         float:right;
  20. }