• I know there’s an issue with P tags wrapping everything, but is there a way to assign custom classes to specific P tags? If I actually write it out <p class="blah">lorem</p>, it wraps it all in yet another paragraph tag…

    Maybe someone has figured out a way to show ALL html in the Code tab, rather than just HTML that ommits the P tag? Any ideas?

    Thanks
    Dimitry

Viewing 2 replies - 1 through 2 (of 2 total)
  • 1 x Enter = br
    2 x Enter = p
    Knowing that you can have yur own class. E.g. if I type this into the text input area:

    let's have a test - this will be wrapped by WP in p tags
    <p style="color:red;">this is my own para; I could give it a class, too</p>
    this probably starts a new para since the one above is closed
    
    new para created by 2xenter

    here is the resulted output:

    <p>let’s have a test - this will be wrapped by WP in p tags</p>
    <p style="color:red;">this is my own para; I could give it a class, too</p>
    <p>this probably starts a new para since the one above is closed</p>
    <p>new para created by 2xenter
    </p>

    Thread Starter dimitry

    (@dimitry)

    Ah ok, I figured out why I was having problems. There was an issue within my Theme.

    This makes sense though and will help in the future.

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Custom classes for P tags in 2.1?’ is closed to new replies.