WordPress.org

Ready to get started?Download WordPress

Forums

ELI's SQL Admin Reports Shortcode and DB Backup
[resolved] [Plugin: ELI's Custom SQL Report Admin with shortcode] alternate row color? (4 posts)

  1. RenoJohn
    Member
    Posted 1 year ago #

    Wow, this plugin is the best kept secret on planet earth. Awesome in every way.

    It gives no-brainer option for border, wonder if that same "for dummies" could be incorporated for alternating row background colors?

    or maybe a quick hint as to how this might be done.

    Thanks for an awesome plugin!!

    http://wordpress.org/extend/plugins/elisqlreports/

  2. Eli
    Member
    Plugin Author

    Posted 1 year ago #

    Hey John,
    I just added some classes to the table and TRs so you have better style control.

    The new classes are:
    ELISQLREPORTS-Header-Row
    ELISQLREPORTS-Odd-Row
    ELISQLREPORTS-Even-Row

    so you can add something like
    ELISQLREPORTS-Odd-Row {background-color: #F00;}
    to your styles.css and every other row will be red.

    Aloha, Eli

  3. Eli
    Member
    Plugin Author

    Posted 1 year ago #

    Correction:
    the CSS usage example would be:
    .ELISQLREPORTS-Odd-Row {background-color: #F00;}

    Sorry, I forgot the "DOT" at the beginning (because it is a class name).

  4. RenoJohn
    Member
    Posted 1 year ago #

    Man-o-Man

    That is awesome!! So now I take my SQL query(s), drop them into a page/post via shortcode --and now I can style them too.

    ...and it ain't even Christmas! Thanks so much! This new functionality is great!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.