Unyson icon indicating copy to clipboard operation
Unyson copied to clipboard

Table columns

Open ziuzea87 opened this issue 11 years ago • 5 comments

Is there a way to add more than 5 columns in the table with Visual Editor?

ziuzea87 avatar Jun 01 '15 21:06 ziuzea87

Please see this printscreen.

llemurya avatar Jun 02 '15 05:06 llemurya

TODO: Add wp_localize_script() for that hardcoded value and apply filter on it.

ghost avatar Sep 30 '15 10:09 ghost

https://github.com/ThemeFuse/Unyson-Shortcodes-Extension/commit/2a7c10ba2f4d2650d7da42cf6a5b1c5aa11d16bc https://github.com/ThemeFuse/Unyson-Shortcodes-Extension/commit/e45a37344a7f97e8b5fbc76b7b9c6d401bb3690a

alvisir avatar Jan 05 '16 13:01 alvisir

In functions.php add this (ex: I want a maximum of 8 columns)

add_filter( 'fw_ext_shortcodes_table_max_columns', 'fw_ext_shortodes_table_edit_max_cols'  );
function fw_ext_shortodes_table_edit_max_cols( $max ) {
    $max_cols = 8;
    return $max_cols;
}

alvisir avatar Jan 05 '16 13:01 alvisir

@alvisir thanks for contribution.

llemurya avatar Jan 06 '16 08:01 llemurya