treehouse : what would you like to learn today?
Web Design Web Development iOS Development

[Solved] Wordpress extra tags

  • My php:

    <div class="entry">
    <p class="entry"><?php the_content(); ?></p>
    </div>


    my output on wordpress:

    <p class="entry"><p>Testing testing 123.</p></p>


    Any idea as to the reason for the uncalled for p tag?

    Thanks :)
  • The content itself has a p tag in it.

    You don't need the class of 'entry' on the paragraph tag anyways, since you can target it with:

    .entry p { }

  • Hey Doc,

    Apparently you're my go to guy around here. I kind of figured this, but then how do I instruct wordpress to give content p tags the class of entry? Is it similar to what you helped me with in the sidebar, with function.php?
  • God, learning css and wordpress at the same time is a recipe for stupid ass questions. I'm assuming I would wrap the content in a div tag with a class of entry, then write .entry p into the css and that would do it, yes?