I’d like to hide a div on the front page of my site (it’s WordPress but I’ve made the home page static). I’ve been trying different things for an hour thinking it should be simple. This is what I’m using:
.page-id-2 #boxmenu {display:none;}
I also tried this:
The problem is that your #boxmenu CSS is for IDs. Not classes. Look at the code you posted in post #1. That’s assigning a CLASS. So your code from post1 needs to be changed to ID. Or your CSS changed. One or the other.