hide a heading with CSS based on 2 conditions
-
Hello,
Trying to hide a heading if the condition is that two other areas of text are also hidden (id v4option and class v4type). Both these must be hidden together i.e. not only one or the other.
<?php if ( #v4option, .v4type (‘display: none’)) { ?> <style> #v4heading{ display: none; } </style> <?php } ?>
[Moderator note: code fixed. Please wrap code in the backtick character or use the code button.]
thanks!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘hide a heading with CSS based on 2 conditions’ is closed to new replies.