Home › Forums › CSS › [Solved] Is display none the right way to hide an element? › Reply To: [Solved] Is display none the right way to hide an element?
November 18, 2014 at 1:54 pm
#188643
Alen
Participant
Is it possible to create a function in my child theme to remove it ?
I’m not familiar with bbpress, but I would imagine there is a way to modify functionality without altering core files.
So recommended way is to definitely take care of this at server level. And anyone interested… here’s some CSS for hiding elements, etc…
.hidden {
display: none !important;
visibility: hidden;
}
.invisible {
visibility: hidden;
}
.hide-text {
text-indent: 100%;
white-space: nowrap;
overflow: hidden;
}
.visually-hidden {
overflow: hidden;
position: absolute;
clip: rect(0 0 0 0);
height: 1px;
width: 1px;
margin: -1px;
padding: 0;
border: 0;
}
.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
position: static;
clip: auto;
height: auto;
width: auto;
margin: 0;
overflow: visible;
}
Code from Rock-Hammer