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

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    For this, you will have to modify the “tablepress-datatables-tabletools.php” file. Change line 60 from

    $tabletools_options = '{ "sSwfPath": "' . $swf_path . '", "aButtons": [ { "sExtends": "copy", "sButtonText": "" }, { "sExtends": "csv", "sButtonText": "" }, { "sExtends": "xls", "sButtonText": "" }, { "sExtends": "pdf", "sButtonText": "" }, { "sExtends": "print", "sButtonText": "" } ] }';

    to

    $tabletools_options = '{ "sSwfPath": "' . $swf_path . '", "aButtons": [ { "sExtends": "print", "sButtonText": "" } ] }';

    You should the only see the “Print” button.

    To make the icon look bolder, you would have to replace the image of the printer with a custom one.

    Regards,
    Tobias

    Thread Starter nb123

    (@nb123)

    Thanks Tobias,if i upload a new print icon,where do i need to tell the code to look for it?

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    the quickest way would be to simply replace the existing printer image.
    Otherwise, you’d have to change the two CSS files.

    Regards,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Keeping only print option-tablepress datatables’ is closed to new replies.