Support

Home Forums Event Espresso Premium Adding a CSS class to an element

Adding a CSS class to an element

Posted: May 17, 2017 at 8:49 am

Viewing 2 reply threads


jbbruning

May 17, 2017 at 8:49 am

Hi there

I’m in the process of styling some of the core EE4 pages, and i’m struggling to hide a field for small mobile devices (description of a ticket) https://snag.gy/6YbFRe.jpg

There is nothing unique to the element, so wondering where i can find the template file for this element and add in a class – if possible?

Many thanks.


jbbruning

May 17, 2017 at 8:56 am

I actually figured this one out quite quickly (unlike most of my support requests…)

table.tckt-slctr-tkt-details-tbl tbody tr td:nth-of-type(2) {
display: none;
}


Tony

  • Support Staff

May 17, 2017 at 9:01 am

That element has an attribute set, so you can use an attribute selector:

.tckt-slctr-tkt-details-tbl td[data-th="Description"] {
    display: none;
}
Viewing 2 reply threads

The support post ‘Adding a CSS class to an element’ 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