Missing <p> tag (4 posts)

  1. popmatik
    Posted 8 years ago #

    I am having trouble with wordpress removing the first <p> tag leaving me with a </p> that doesnt have an opener.

    This comes about when i insert <div> tags.

    Here is the example code:

    <div class="gallery">
    <img src="3.jpg" alt="thumb" /><strong>Title</strong></p>
    <p>Description of the work</p>
    <p>Dimensions of the work</p></div>

    I have edited the tincy_mce_config.php file so that it doesnt replace <div> tags with <p> tags.

    Everything is working swimmingly apart from the fact that it removes the first <p> after the image.

    If anyone has seen this problem and knows a fix... i would appreciate it big time.

    Many thanks

  2. Jeremy Clark
    Posted 8 years ago #

    If your typing in code anyway why not just disable the visual editor all together. The option to disable it is in your profile.

  3. popmatik
    Posted 8 years ago #

    Yeah unfortunately... im not typing it in. Im using the template plugin to drop that code in from tinymce.

    Its so a client can update there content without the need to code anything. So unfortunately i need it to work in normal view.

    any other ideas...

  4. Jeremy Clark
    Posted 8 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.