WordPress.org

Forums

WP-Table Reloaded
[resolved] Disabling sort for selected columns (12 posts)

  1. antioch
    Member
    Posted 2 years ago #

    when following the directions here the background of the column headers of my unsortable columns turns black making the text in them unreadable.

    http://www.elkriveradventure.com/index.php/reviews/campgrounds-outfitters/

    http://wordpress.org/extend/plugins/wp-table-reloaded/

  2. antioch
    Member
    Posted 2 years ago #

    oh yeah, here is my custom commands string:
    "aoColumnDefs": [ { "bSortable": true, "aTargets": [ 0, 1, 2, 8 ] }, { "bSortable": false, "aTargets": [ "_all" ] } ]

  3. antioch
    Member
    Posted 2 years ago #

    it also renders all of the footer cells black.

  4. TobiasBg
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,

    thanks for your question!

    The reason for this seems to be that your theme also defines a background color for table cells in the first and last row. To again change that, please add the following to the "Custom CSS" textarea on the "Plugin Options" screen of WP-Table Reloaded:

    .wp-table-reloaded th {
      background-color: #E6EEEE !important;
    }

    Regards,
    Tobias

  5. antioch
    Member
    Posted 2 years ago #

    doesnt seem to have an effect?

  6. TobiasBg
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,

    ah, my bad. Please try again with

    .wp-table-reloaded th {
      background: #E6EEEE !important;
    }

    Regards,
    Tobias

  7. antioch
    Member
    Posted 2 years ago #

    that fixed the blackout issue. however it also removed the sorting indicators. though the functionality remains.

  8. TobiasBg
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,

    ah, yes, forgot about that... Sorry.
    Then please try again with

    .wp-table-reloaded th {
      background: #E6EEEE !important;
    }
    .wp-table-reloaded .sorting {
      background: #E6EEEE url(http://www.elkriveradventure.com/wp-content/plugins/wp-table-reloaded/img/bg.gif) no-repeat center right !important;
    }
    .wp-table-reloaded .sorting_asc {
      background: #8DBDD8 url(http://www.elkriveradventure.com/wp-content/plugins/wp-table-reloaded/img/asc.gif) no-repeat center right;
    }
    .wp-table-reloaded .sorting_desc {
      background: #8DBDD8 url(http://www.elkriveradventure.com/wp-content/plugins/wp-table-reloaded/img/desc.gif) no-repeat center right;
    }

    That should really take care of everything now :-)

    Best wishes,
    Tobias

  9. antioch
    Member
    Posted 2 years ago #

    almost there. that restores the sort buttons...until u click on one. then it disappears for that column until u click on one from another column.

  10. TobiasBg
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,

    argh, I forgot to add the !important keyword to the last two blocks.
    Last try :-) :

    .wp-table-reloaded th {
      background: #E6EEEE !important;
    }
    .wp-table-reloaded .sorting {
      background: #E6EEEE url(http://www.elkriveradventure.com/wp-content/plugins/wp-table-reloaded/img/bg.gif) no-repeat center right !important;
    }
    .wp-table-reloaded .sorting_asc {
      background: #8DBDD8 url(http://www.elkriveradventure.com/wp-content/plugins/wp-table-reloaded/img/asc.gif) no-repeat center right !important;
    }
    .wp-table-reloaded .sorting_desc {
      background: #8DBDD8 url(http://www.elkriveradventure.com/wp-content/plugins/wp-table-reloaded/img/desc.gif) no-repeat center right !important;
    }

    Regards,
    Tobias

  11. antioch
    Member
    Posted 2 years ago #

    that did it! many thx!

  12. TobiasBg
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,

    awesome! :-) Thanks a lot for the confirmation!

    Best wishes,
    Tobias

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP-Table Reloaded
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic