Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End How do I add a class to the <p>

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #26473
    Chris Coyier
    Keymaster

    I was wondering how i would add a class to the <p> element because when ever I use a template tag it makes it own <p> tags and wont use tags like <p class="footer-tags">. Any way i can add a class to something like <?php wp_tag_cloud(); ?>.
    Thanks
    Ben

    #65613
    Rob MacKay
    Participant

    well you could just wrap the cloud in something else? I dont really know what you are trying to do – other than add a class, I suspect so you can apply a style…

    So why dont you just do something like…

    .theclass p { style }

    that would effect the P’s inside the element with "theclass" class lol…

    <div class="theclass">
    <p></p>
    </div>

    Obviously it can be any block element, not just a div… :)

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Back End’ is closed to new topics and replies.