WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Plugin: Dashboard Pages] Changing the default height panel (1 post)

  1. saharusa
    Member
    Posted 4 years ago #

    Nice plugin! Thanks,

    One suggestion, Dashboard Pages out of the box comes with table of 600px height, which is not a problem for me... but when you don't have enough pages yet you end up with high empty table. here's what i did:

    pages-dashboard.php - find this element:

    <div class="page-scroller">

    replace with:

    `<div class="page-scroller">
    <table class="page widefat" cellspacing="0">
    <thead>
    <tr>
    <?php print_column_headers('edit-pages'); ?>
    </tr>
    </thead>
    </table>
    <div class="ps-wrapper">
    <table class="page widefat" cellspacing="0">
    <tbody>
    <?php page_rows($posts, $pagenum, $per_page); ?>
    </tbody>
    </table>
    </div>
    <div class="ps-footer">
    <table class="page widefat" cellspacing="0">
    <tfoot>
    <tr>
    <?php print_column_headers('edit-pages', false); ?>
    </tr>
    </tfoot>
    </table>
    </div>
    </div>`

    pages-dashboard.css - replace all content with:

    /*
    
    Dashboard Pages Styling 
    
    */
    
    .page-scroller div.ps-wrapper { max-height: 600px; overflow-x: hidden; overflow-y: auto; margin-top:-3px; }
    .page-scroller div.ps-wrapper td { padding:3px; }
    .page-scroller div.ps-footer { margin-top:-3px; }
    .page-scroller td.column-date { padding-right: 20px; }

    Now only when number of pages won't fit in 600px height you'll get the scroller

    http://wordpress.org/extend/plugins/dashboard-pages/

Topic Closed

This topic has been closed to new replies.

About this Topic