WordPress.org

Ready to get started?Download WordPress

Forums

Easy Table Creator By PolyVision
Setting to enable or disable tablesorter for individual t (8 posts)

  1. zubinraj
    Member
    Posted 3 years ago #

    Thank you for this wonderful plugin. Do you have any plans of creating setting for enabling or disabling tablesorter at the table level along with the global setting?

    http://wordpress.org/extend/plugins/easy-table-creator/

  2. andycleff
    Member
    Posted 3 years ago #

    Has anybody figured out how to disable the tablesorter at the table level and/or globally?

  3. andycleff
    Member
    Posted 3 years ago #

    Found it. Admin > Settings > Easy Table Creator > Use Tablesorter config y/n

    Thanks PolyVision for a great plug in.

  4. andycleff
    Member
    Posted 3 years ago #

    Seems that some CSS get broken when you turn the table sorter off.
    Just need to add them back in with custom.css

    .easy-table-creator .odd td { background-color: #f0f0f6; }
    .easy-table-creator { background-color: #cdcdcd; border-collapse: separate; border-spacing: 1px; font-size: 8pt; margin: 10px 0 15px; text-align: left; width: 100%; }
    .easy-table-creator .even td { background-color: #ffffff; }
    .easy-table-creator th { background-color: #e6eeee; border: solid 1px #ffffff; color: #3d3d3d !important; vertical-align: bottom; padding: 4px; }
    .easy-table-creator td {background-color: #FFFFFF; color: #3D3D3D; padding: 4px;vertical-align: top;}
  5. andycleff
    Member
    Posted 3 years ago #

    My css idea is not perfect. Doesn't play nice if your turn tablesorter back on. Sorting functions doesn't work.

    BTW if you add the plug-in TinyMCS Advanced, you can get nice WYSIWYG table edit functions that work with tables created by Easy Table Creator - so you can do even/odd css easily.

    You might also consider the WP-Table Reloaded plug in - which is nice if you use a single table in multiple locations. Very powerful plug in, with logs of configs, but at the moment it does not have any WYWIWYG editing capabilities.

    But WP-Table reloaded won't interfere with Easy Table Creator - so you can use both.

  6. rcvaughn
    Member
    Posted 3 years ago #

    Hey quick question if youre still subscribed to this post.... thank you btw for posting your css, it helped a ton! However, my even/odd css styles aren't working anymore...Any ideas?

  7. andycleff
    Member
    Posted 3 years ago #

    I think with the table sorter function disabled, the auto even/odd tagging was also disabled.

    So I ended up using the table edit functions available thru TinyMCS Advanced to manually assign "odd" to all odd rows, same for even.

    Hope this helps!

  8. StandardExcellence
    Member
    Posted 3 years ago #

    The original question had to do with enabling or disabling the table sorter function at the table level as well as the global level. I believe we have covered the global, but I also didn't see an answer for how to do this on a table-by-table basis.

    I believe this information will be helpful:

    Assuming you have the global table sorter function enabled (Settings -> Easy Table Creator -> "Use Tablesorter"), you can disable the sorting feature for an individual table. This can be done while preserving the color scheme as well!

    1. In your page or post, change the view from the Visual editer to the HTML editor.
    2. Locate the beginning of the table in question. You should see some code like this:

    <table class="easy-table-creator tablesorter" style="width: 100%;">
    <thead></thead>

    3. Remove the word "tablesorter" from the class tag, but leave the <thead> section. In this case it is blank because I did not have a header.

    That should be all there is to it! I found that without the <thead> tags my table did not format correctly. There may be a way around that, but it didn't bother me enough to search any deeper. The result is a pretty table with alternating colors and no sorter. Additionally, you can still have a header with content if you wish, but just remove the "tablesorter" verbiage and you will be set.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic