I am trying to target text that is not wrapped in any specific tag or wrapper. I am pulling information from wordpress, using wordpress calls, so I won't be able to edit what I am pulling in.
The HTML/PHP looks like this:
<div class="content-box">
<?= $page[0]->post_content; ?>
</div>
The HTML outputs like this:
<div class="content-box">
<h1>Title Here</h1>
Here is some text I need to target
</div>
I need to hide (and manipulate with jQuery) the text in the content-box, though I can not add any HTML around it to wrap it.
What I'd like to do is initially hide the text and fadeIn()
on hover. So how do I target that text with CSS?
it feels like I need to do something like this:
.content-box > *:not(h1){
display:none;
}
but that doesn't do it.