Why on earth does "the_content" include a surrounding tag?
Is there any way around that? I want to add a class to it like this
<p class="entry">
<?php the_content(); ?>
Why on earth does "the_content" include a surrounding tag?
Is there any way around that? I want to add a class to it like this
<p class="entry">
<?php the_content(); ?>
You could still wrap the entire lot in a div and reference it in CSS as:
#divname P
and define
#divname P P
as the paragraphs inside the enclosing p's
Hm... a pretty ugly work around IMO. Not what I am looking for. But thanks anyway!
It's part of the CSS standard, not really a work-a-round.
If you don't like jaredquinn's solution, your only other option will be to hack core code....
vkaryl
If you don't like jaredquinn's solution, your only other option will be to hack core code....
What file would need to be hacked in order to do this?
tcurdt, I'm happy to say I think I've found the perfect solution.
http://dev.wp-plugins.org/browser/wp-unformatted/trunk/
This is a plugin written by alexking; his homepage is alexking.org. Plug it in, read the instructions, and from what I can see, it works fine!
Thanks, that's what I was looking for!
This topic has been closed to new replies.