css - manipulating wordpress "the_content" -
i'm working on wp site. article page, use <?php the_content(); ?>
pull in content of post page i'm on. need manipulate first letter of first paragraph. fortunately me, first paragraph seems have unique class of excerpt
. i'm able make big , change font, etc, issue arises when comes color.
there 6 separate sections on site. each has it's own color. need letter appropriate color. however, @ point declares first paragraph of class excerpt
it's out of hands can't dynamically add in color or add unique class name, etc.
thoughts?
edit upon request little of code:
<div class="postexcerpt"> <span class="author">bob smith</span> <br/><br/> (this call the_content() , generates following <p> tags. oddly enough, when inspect element, see first 1 has class of `excerpt`, when view source, doesn't) <p>blah blah blahblah blah blahblah blah blahblah blah blahblah blah blah</p> <p>blah blah blahblah blah blahblah blah blahblah blah blahblah blah blah</p> <p>blah blah blahblah blah blahblah blah blahblah blah blahblah blah blah</p> <p>blah blah blahblah blah blahblah blah blahblah blah blahblah blah blah</p> (out of the_content() call)
in end, did realize controlled parent element. dynamically renamed in php file reflect section in created css each of new sections , performed action on p:first-of-type:first-letter , worked.
Comments
Post a Comment