For the first issue i did upload a css file like:
/wp-content/plugins/wp-table-reloaded/css/wp-table-reloaded-special.css
but it didnt work. And i dugg a little further
i guess it requires some changes in codes here: wp-table-reloaded/controllers/controller-frontend.php
The corresponding code:
function add_frontend_css() {
$default_css = array();
if ( $this->options['use_default_css'] ) {
$plugin_path = plugin_dir_url( WP_TABLE_RELOADED__FILE__ );
$plugin_path = apply_filters( 'wp_table_reloaded_plugin_path', $plugin_path );
$url_css_plugin = $plugin_path . 'css/plugin.css' . '?ver=' . $this->options['installed_version'];
$url_css_plugin = apply_filters( 'wp_table_reloaded_url_css_plugin', $url_css_plugin );
if ( !empty( $url_css_plugin ) )
$default_css['plugin.css'] = "@import url(\"{$url_css_plugin}\");";
// RTL languages support
if ( is_rtl() ) {
$url_css_rtl_plugin = $plugin_path . 'css/plugin.rtl.css' . '?ver=' . $this->options['installed_version'];
$url_css_rtl_plugin = apply_filters( 'wp_table_reloaded_url_css_rtl_plugin', $url_css_rtl_plugin );
if ( !empty( $url_css_rtl_plugin ) )
$default_css['plugin.rtl.css'] = "@import url(\"{$url_css_rtl_plugin}\");";
}
if ( $this->options['enable_tablesorter'] ) {
switch ( $this->options['tablesorter_script'] ) {
case 'datatables-tabletools':
$url_css_tabletools = $plugin_path . 'js/tabletools/tabletools.css' . '?ver=' . $this->options['installed_version'];
$url_css_tabletools = apply_filters( 'wp_table_reloaded_url_css_tabletools', $url_css_tabletools );
if ( !empty( $url_css_tabletools ) )
$default_css['tabletools.css'] = "@import url(\"{$url_css_tabletools}\");";
case 'datatables': // this also applies to the above, because there is no "break;" above
$url_css_datatables = $plugin_path . 'css/datatables.css' . '?ver=' . $this->options['installed_version'];
$url_css_datatables = apply_filters( 'wp_table_reloaded_url_css_datatables', $url_css_datatables );
if ( !empty( $url_css_datatables ) )
$default_css['datatables.css'] = "@import url(\"{$url_css_datatables}\");";
break;
case 'tablesorter':
case 'tablesorter_extended':
$url_css_tablesorter = $plugin_path . 'css/tablesorter.css' . '?ver=' . $this->options['installed_version'];
$url_css_tablesorter = apply_filters( 'wp_table_reloaded_url_css_tablesorter', $url_css_tablesorter );
if ( !empty( $url_css_tablesorter ) )
$default_css['tablesorter.css'] = "@import url(\"{$url_css_tablesorter}\");";
break;
default:
}
}
}
$default_css = apply_filters( 'wp_table_reloaded_default_css', $default_css, $this->options['use_default_css'], $this->options['tablesorter_script'], $this->options['enable_tablesorter'] );
$default_css = implode( "\n", $default_css );
$custom_css = '';
if ( $this->options['use_custom_css'] ) {
$custom_css = ( isset( $this->options['custom_css'] ) ) ? $this->options['custom_css'] : '';
$custom_css = stripslashes( $custom_css );
}
$custom_css = apply_filters( 'wp_table_reloaded_custom_css', $custom_css, $this->options['use_custom_css'] );
if ( !empty( $default_css ) || !empty( $custom_css ) ) {
$divider = ( !empty( $default_css ) && !empty( $custom_css ) ) ? "\n" : '';
// $default_css needs to stand above $custom_css, so that $custom_css commands can overwrite $default_css commands
$css = <<<CSSSTYLE
<style type="text/css" media="all">
/* <![CDATA[ */
{$default_css}{$divider}{$custom_css}
/* ]]> */
</style>
CSSSTYLE;
$css = apply_filters( 'wp_table_reloaded_frontend_css', $css );
echo $css;
}
}
i dont know if requires more code-changing on any other part of the plugin. My knowledge is very weak at this point but this is important for me.
i dont want the content "that is crawled by search engines" to be filled with CSS codes.
please just tell me what i need to do.