I am trying to hide these:
<p>
<label for="secondname"><?php esc_html_e('Last Name','wpestate');?></label>
<input type="text" id="secondname" class="form-control" value="<?php echo $last_name;?>" name="firstname">
</p>
I managed to hide the Input, but not the label.
#secondname {
display: none;
}
Thanks
Use the attribute selector:
label[for="secondname"] {
display: none;
}
Hiding the label with display: none;
is bad for web accesibility and you shouldn't do it.
Try visibility: hidden;
instead.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With