Support

Home Forums Event Espresso Premium Change Background of Header on Table Grid

Change Background of Header on Table Grid

Posted: December 13, 2015 at 7:03 pm

Viewing 7 reply threads


b2995

December 13, 2015 at 7:03 pm

Hey Guys! Can I change the color of the header/footer of the Table Grid?

Thank you!


Tony

  • Support Staff

December 14, 2015 at 5:08 am

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?


b2995

December 15, 2015 at 4:46 pm

Yes ๐Ÿ˜‰


Lorenzo Orlando Caum

  • Support Staff

December 15, 2015 at 5:09 pm

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?


Lorenzo


b2995

December 16, 2015 at 8:55 am

Yes…I tried using the following but it does not work:

.espresso-table-header-row {
background: #f2f2f2;}

.tfoot {
background: #f2f2f2;}


Lorenzo Orlando Caum

  • Support Staff

December 16, 2015 at 11:27 am

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.


Lorenzo


b2995

December 16, 2015 at 2:46 pm

It didn’t work ๐Ÿ™
http://www.newmexicosalsacongress.com/buy-event-passes/

I placed in the child style.css sheet


Lorenzo Orlando Caum

  • Support Staff

December 16, 2015 at 4:26 pm

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;
}


Lorenzo

Viewing 7 reply threads

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.

Event Espresso