WordPress.org

Forums

WP-Table Reloaded
[resolved] column width (13 posts)

  1. mike1985
    Member
    Posted 3 years ago #

    Hi there,

    I'm having some problems with adjusting the column width of my tables. I've followed the exact steps on the FAQ and used tips in this forum (turned datatables/javascript off) but it won't help, the table width remains unchanged.

    Can you tell me what I can do? Can it be the theme? I'm using the Kameleon theme from Themeforest.

    (I'm not a code-writer, so I hope there is a simple solution)

    Thanks!

  2. TobiasBg
    Member
    Plugin Author

    Posted 3 years ago #

    Hi,

    can you please provide a link to the page with your table?

    Thanks,
    Tobias

  3. mike1985
    Member
    Posted 3 years ago #

    http://bit.ly/eaHxg2 (its highly under construction!)

  4. TobiasBg
    Member
    Plugin Author

    Posted 3 years ago #

    Hi,

    thanks for the link.

    The way how you set the column widths is entirely correct.
    The problem is a different one: There's simply no space for the column to increase, as the other columns also require space (corresponding to the content in them) and thus they "push" the column smaller again.

    And this seems to be a result of how your theme places the table on the page (inside some sort of widget, to achieve a three-column layout).
    So, you should try to create the page without using this three column layout, so that the table can actually use the entire width of the page.

    (You can achieve this through a workaround as well, by adding

    #feature-list.Three-col li {
      width: auto!important;
    }

    to the "Custom CSS" on the "Plugin Options" screen.

    Be aware that this might however also alter the width of other pages, so it definitely is not the best solution here.

    Best wishes,
    Tobias

  5. mike1985
    Member
    Posted 3 years ago #

    Thanks Tobias,

    The last option worked, but you're right: all other tables would be affected. Is it possible to paste a certain table in the plain wordpress template (the theme-editor)?

  6. TobiasBg
    Member
    Plugin Author

    Posted 3 years ago #

    Hi Mike,

    yes, that is possible. Instead of using the Shortcode, you would however use the PHP Template Tag (see the documentation at http://tobias.baethge.com/wordpress-plugins/wp-table-reloaded-english/documentation/)

    Regards,
    Tobias

  7. mike1985
    Member
    Posted 3 years ago #

    Thanks for your help Tobias!

  8. TobiasBg
    Member
    Plugin Author

    Posted 3 years ago #

    Hi,

    no problem, you are very welcome! Nice to see that the table can now use the full width :-)

    Regards,
    Tobias

  9. punchup
    Member
    Posted 3 years ago #

    Tobias, with all these problems regarding column-width, and I've had quite a few myself, why not just make a shortcode for table-width? It would seem obvious to me that the one thing that varies with each table you create is its width!
    I think the majority of tables created simply need the columns to be of equal width, where the content naturally wraps to whatever the column width is, all of it determined by the overall table width! Help!
    (unless of course, this has already been created, thanks in advance)

  10. TobiasBg
    Member
    Plugin Author

    Posted 3 years ago #

    Hi,

    thanks for your post.

    There's actually a Shortcode parameter "column_widths" that can be used for this. It will add inline CSS to the columns. You can find more about it in the documentation at http://tobias.baethge.com/wordpress-plugins/wp-table-reloaded-english/documentation/)

    Not however, that the content will not necessarily follow these width settings. For example, if the content requires a longer width, it will simply "take" it, due to the nature how CSS/tables work in browsers.

    Regards,
    Tobias

  11. punchup
    Member
    Posted 3 years ago #

    Tobias, I believe you missed my point entirely. The existing "column_widths" shotcode is the problem, not the solution! I am suggesting that the easy fix for all of the problems is create athing causing all the problems and confusion. The a

  12. punchup
    Member
    Posted 3 years ago #

    Tobias, I believe you missed the point entirely. The existing "column_widths" shotcode is the PROBLEM, not the solution! I am suggesting that the easy fix for all of the problems it causes is to create a new shortcode called "TABLE_WIDTH." This would solve most of the problems everyone is complaining about.

  13. TobiasBg
    Member
    Plugin Author

    Posted 3 years ago #

    Hi,

    oh, ok :-) So you want a parameter to the the width of the table, and not the width of the columns, if I now unterstand correctly.

    To be honest, I don't really think that this could be a good solution. After all, all it could do is add an inline style parameter to the table's HTML <table> tag. In my opinion, this is not desireable, especially, as every table has a unique ID that can be used for CSS styling.

    Can you maybe explain on how exactly (with an example) you would like this to work?

    Thanks,
    Tobias

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic