Hi Tobias,
I'm really grateful for your help. However, I seem to be missing something, as the numbers are not yet right-aligning in my practice post (scroll down to the second and third tables):
http://www.kiangle.com/demo-right-justify-a-column-in-wp-table-reloaded/
Here is what I did.
1. Went to your post on creating an extension file for wp-table-reloaded, http://tobias.baethge.com/wordpress-plugins/wp-table-reloaded-english/extensions/
2. I created a new document in TextEdit called wp-table-reloaded-extensions.php, with this "assembled" code in it (select-all-copy-paste):
<?php
/*
Plugin Name: WP-Table Reloaded Extensions
Plugin URI: http://tobias.baethge.com/wordpress-plugins/wp-table-reloaded-english/extensions/
Description: Custom Extensions for WP-Table Reloaded
Version: 1.0
Author: Tobias Baethge
*/
//
function wp_table_reloaded_cell_class_currency_value( $class, $table_id, $row, $column, $cs, $rs, $cell_content ) {
if ( false !== strpos( $cell_content, '$' ) )
$class .= ' currency-value';
return $class;
}
add_filter( 'wp_table_reloaded_cell_css_class', 'wp_table_reloaded_cell_class_currency_value', 10, 7 );
?>
3. I saved the file and uploaded it to the plugins folder on my server ( /wp-content/plugins ), and not into the wp-table-reloaded folder, as per the instructions in your post on creating extensions.
4. Then I went into Plugins Options for wp-table-reloaded. I copy-pasted the following into the Custom CSS box and selected the checkbox:
.wp-table-reloaded .currency-value {
text-align: right !important;
}
I must be missing something, even after triple-checking it. Can you see where I may be going wrong?
Thanks so much! (Hoping this will be helpful for others, too!)
ea/