SHARE
TWEET

pagination styling

supportnwl Oct 4th, 2012 230 Never
  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. }
RAW Paste Data
Top