• Resolved smagnun

    (@smagnun)


    Hi Tobias,
    How are you?

    I would like to use the collapse mode without change the shortcode, the reason is I have already many posts done and to change each shortcode in each post will be painful.

    Do you have a solution to my case?

    Thanks, have a nice day.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    You could modify the Extension’s PHP file to make collapse the default for all tables. For that, just change line 104 of the file tablepress-responsive-tables.php from
    $default_atts['responsive'] = '';
    to
    $default_atts['responsive'] = 'collapse';

    Regards,
    Tobias

    Thread Starter smagnun

    (@smagnun)

    Hi Tobias

    that’s perfect, does this feature also works to others extensions?

    Thanks.

    Samuel

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi Samual,

    yes, for all Extensions that have a line like that $default_atts['...'] = ...; you should be able to set the default values by changing that line.

    Regards,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Use Collapse without change/add the shortcode’ is closed to new replies.