Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Yes, this is possible with some CSS code that needs to be added to the “All tables” screen with a TablePress Extension. As a basis, you can use the TablePress Extension from http://tablepress.org/extensions/input-field-size/ and modify the code in it to something like this:

    if ( 'tablepress_list' === $current_screen->id ) {
    ?>
    <style type="text/css" media="screen">
    .tablepress-all-tables thead .column-table_id {
    	width: 200px;
    }
    </style>
    <?php
    }

    Regarding my wishlist: I don’t really have a favorite on that list. I’m such a big baseball fan that I like all of those books 🙂

    Regards,
    Tobias

    Thread Starter harvoolio

    (@harvoolio)

    Tobias,

    Thanks. I am not very technically sound, so I assume you are instructing me to copy and paste the code above at the very bottom of “tablepress-edit-field-size/tablepress-edit-field-size.php” I did so but unfortunately it did not work. Is that what you wished for me to do?

    FYI – I just made a $50 donation (kept it simple).

    Thanks.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    almost 🙂 Please try again by replacing the entire tablepress_input_field_size function with this:

    function tablepress_input_field_size() {
    	$current_screen = get_current_screen();
    	if ( 'tablepress_list' === $current_screen->id ) {
    ?>
    <style type="text/css" media="screen">
    .tablepress-all-tables thead .column-table_id {
    	width: 200px;
    }
    </style>
    <?php
    }
    }

    And thanks for that donation, I really appreciate it! I’ll use that towards a new baseball glove next season 🙂

    Regards,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Extending All Tables View’ is closed to new replies.