Posted: December 13, 2015 at 7:03 pm
|
Hey Guys! Can I change the color of the header/footer of the Table Grid? Thank you! |
Hi there, Is this from the table output using the [ESPRESSO_EVENTS_TABLE_TEMPLATE] shortcode from the EE4 Events Table? If not can you let us know which page you are referring to please? |
|
|
Yes ๐ |
Hello, You can inspect any element on a page using a free tool like Chrome Developer Tools (available with Google Chrome) or Firebug (available as a web browser extension). This will show you the CSS that is handling the styling including the file and line number. Then you can add new styling to your child theme’s stylesheet or via a plugin that adds an additional stylesheet to your WordPress site such as Simple Custom CSS or Reaktiv CSS Builder. What color were you interested in changing the light blue to? — |
|
|
Yes…I tried using the following but it does not work: .espresso-table-header-row { .tfoot { |
Hi, this should work: .footable > thead > tr > th, .footable > thead > tr > td { background-color: #f2f2f2; background-image: -webkit-gradient(linear, left top, left bottom, from(#f2f2f2 ), to(#f2f2f2 )); background-image: -webkit-linear-gradient(top, #f2f2f2 , #f2f2f2 ); background-image: -moz-linear-gradient(top, #f2f2f2 , #f2f2f2 ); background-image: -ms-linear-gradient(top, #f2f2f2 , #f2f2f2 ); background-image: -o-linear-gradient(top, #f2f2f2 , #f2f2f2 ); background-image: linear-gradient(to bottom, #f2f2f2 , #f2f2f2 ); -webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset; -moz-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset; border-top: none; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); } .footable > tfoot > tr > th, .footable > tfoot > tr > td { background-color: #f2f2f2; background-image: -webkit-gradient(linear, left top, left bottom, from(#f2f2f2), to(#f2f2f2)); background-image: -webkit-linear-gradient(top, #f2f2f2, #f2f2f2); background-image: -moz-linear-gradient(top, #f2f2f2, #f2f2f2); background-image: -ms-linear-gradient(top, #f2f2f2, #f2f2f2); background-image: -o-linear-gradient(top, #f2f2f2, #f2f2f2); background-image: linear-gradient(to bottom, #f2f2f2, #f2f2f2); -webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset; -moz-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset; border-top: 1px solid #cccccc; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); padding: 10px; } .footable .pagination > ul > .disabled > span, .footable .pagination > ul > .disabled > a, .footable .pagination > ul > .disabled > a:hover, .footable .pagination > ul > .disabled > a:focus { color: #cccccc; cursor: default; background-color: #f2f2f2; } There is more styling involved as its a gradient rather than a solid color. Add that to your theme’s stylesheet or a plugin like Simple Custom CSS or Reaktiv CSS Builder and save changes. — |
|
|
It didn’t work ๐ I placed in the child style.css sheet |
Hi, I can see the styles but the ones from the events table view stylesheet are taking priority. This should work: .footable > thead > tr > th, .footable > thead > tr > td { background-color: #f2f2f2; background-image: -webkit-gradient(linear, left top, left bottom, from(#f2f2f2 ), to(#f2f2f2 )); background-image: -webkit-linear-gradient(top, #f2f2f2 , #f2f2f2 ); background-image: -moz-linear-gradient(top, #f2f2f2 , #f2f2f2 ); background-image: -ms-linear-gradient(top, #f2f2f2 , #f2f2f2 ); background-image: -o-linear-gradient(top, #f2f2f2 , #f2f2f2 ); background-image: linear-gradient(to bottom, #f2f2f2 , #f2f2f2 ) !important; -webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset; -moz-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset; border-top: none; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); } .footable > tfoot > tr > th, .footable > tfoot > tr > td { background-color: #f2f2f2 !important;; background-image: -webkit-gradient(linear, left top, left bottom, from(#f2f2f2), to(#f2f2f2)); background-image: -webkit-linear-gradient(top, #f2f2f2, #f2f2f2); background-image: -moz-linear-gradient(top, #f2f2f2, #f2f2f2); background-image: -ms-linear-gradient(top, #f2f2f2, #f2f2f2); background-image: -o-linear-gradient(top, #f2f2f2, #f2f2f2); background-image: linear-gradient(to bottom, #f2f2f2, #f2f2f2) !important; -webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset; -moz-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset; border-top: 1px solid #cccccc; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); padding: 10px; } .footable .pagination > ul > .disabled > span, .footable .pagination > ul > .disabled > a, .footable .pagination > ul > .disabled > a:hover, .footable .pagination > ul > .disabled > a:focus { color: #cccccc; cursor: default; background-color: #f2f2f2 !important; } — |
|
The support post ‘Change Background of Header on Table Grid’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.