Hide Pagination when not needed yet?

Home Forums Porto Admin – Responsive HTML5 Template Hide Pagination when not needed yet?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #10036662
    LetsDezign2
    Participant

    Hi,

    Is there a way to hide the pagination until we reach the 10+ items on a page needed to have a second page?

    Thank you.


    #10036667
    Support2
    Keymaster

    Hello,

    Please note Porto Admin is a static HTML, CSS and JS template. The only way to check if a page has more than 10 posts and then show the pagination is trough a server side code, where you get the posts from database, calculate the number of pages and display the appropriate pagination.

    You can simply hide the pagination by adding a d-none class in the pagination HTML tag, but this will not be dynamic, and even if you have more than 10 posts, the pagination will remain hidden.

    We hope this clarify!

    Kind Regards,

    Rodrigo.


    If you are satisfied with Porto Admin and our support, please leave your comment and rating on ThemeForest downloads page. That helps us a lot: https://themeforest.net/downloads


Viewing 2 posts - 1 through 2 (of 2 total)

This topic is marked as "RESOLVED" and can not rceive new replies.