• Resolved mike1985

    (@mike1985)


    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!

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

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

    Thanks,
    Tobias

    Thread Starter mike1985

    (@mike1985)

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

    Plugin Author Tobias B?thge

    (@tobiasbg)

    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

    Thread Starter mike1985

    (@mike1985)

    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)?

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi Mike,

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

    Regards,
    Tobias

    Thread Starter mike1985

    (@mike1985)

    Thanks for your help Tobias!

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

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

    Regards,
    Tobias

    punchup

    (@punchup)

    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)

    Plugin Author Tobias B?thge

    (@tobiasbg)

    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 https://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

    punchup

    (@punchup)

    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

    punchup

    (@punchup)

    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.

    Plugin Author Tobias B?thge

    (@tobiasbg)

    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

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘[Plugin: WP-Table Reloaded] column width’ is closed to new replies.