• Resolved Stagger Lee

    (@stagger-lee)


    Just to speed up boring and time demanding work of excluding folders and files from backup. And to reduce risks some important folder/file is excluded by mistake, or included when not needed.

    Maybe you can add it to native code.
    Hover over table rows to see directly what file/folder one is excluding.
    (I added line for MainWP too.)

    add_action('admin_head', 'my_custom_backend_css');
    function my_custom_backend_css() {
      echo '<style>
    #mainwp_backupwp_excluded_content tr:hover,
    .hmbkp-exclude-settings tr:hover {background-color: #f2dede !important;}
      </style>';
    }
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Katrina “Kat” Moody

    (@katmoody)

    Hey there @stagger-lee

    Thanks for contributing this! I tried it on my own test site and it really did make it easier to visualize the exclusions I was making!

    I would only consider changing one thing in your function, just to be picky and adhere to WordPress coding standards … adding the space before and after the enclosed add_action … like so:

    add_action( 'admin_head', 'my_custom_backend_css' );
        function my_custom_backend_css() {
            echo '<style> #mainwp_backupwp_excluded_content tr:hover, .hmbkp-exclude-settings tr:hover {background-color: #f2dede !important;} </style>';
        }

    I’m keeping it in my test site! Thanks again!

    Kat

    Thread Starter Stagger Lee

    (@stagger-lee)

    You see. I knew it is done this way, but had no clue it is a WP coding standard. Thanks.

    I noticed after one other small thing. Will check now test site to see if I can remember what was it.
    ———–
    No, all is OK. Probably was something on MainWP site, few lines more of CSS code needed.

    • This reply was modified 8 years, 4 months ago by Stagger Lee.
    Plugin Contributor Katrina “Kat” Moody

    (@katmoody)

    Don’t hesitate to share more functions if you put them together – we might be interested in adding a section to the site to highlight them!

    Thanks!
    Kat

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘One small addition – table rows hover’ is closed to new replies.