NSP pagination top and bottom

Dedicated support forum for CloudHost elegant bosting WordPress theme which is perfect for your business and hosting websites. Here you can ask questions and discuss with other theme users.
GK User
Wed Apr 09, 2014 3:39 pm
Hi!

Is it possible to have the pagination showing both at the top and bottom of the widget NSP?

I guess i have to modify widgets.nsp.php but i haven't really found where i could manage to do that. I'm not looking for a function in the widget setup to change it it's ok if the changes is only in the .php file because i want it on all instances of NSP on my site.
User avatar
Junior Boarder

GK User
Thu Apr 10, 2014 8:03 am
Hello,

This fragment from gavern/widgets.nsp.php file is responsible for the navigation:

Code: Select all
if($amount_of_art_pages > 1) {
         echo '<div class="gk-nsp-arts-nav">';
         
         if($config['article_pagination'] != 'arrows') {
            echo '<ul class="gk-nsp-pagination">';
            
            for($i = 1; $i <= $amount_of_art_pages; $i++) {
               echo '<li>' . $i . '</li>';
            }
            
            echo '</ul>';
         }
         
         if($config['article_pagination'] != 'pagination') {
            echo '<div class="gk-nsp-prev">&laquo;</div>';
            echo '<div class="gk-nsp-next">&raquo;</div>';
         }
         
         echo '</div>';
      }
User avatar
Moderator


cron