• I have pages in WordPress, and one has the following code exactly:

    <div class="contactdetails">
    	<h1>UK Location</h1>
    	<img src="https://www.angelsix.com/images/contact/general.png" />
    	<h2>General Inquiries</h2>
    
    	<div class="contactentry">
    		<h1>Luke Malpass</h1>
    		<strong>Telephone</strong>: (+44)7817900513
    	</div>
    
    	<h2>Product Help and Support</h2>
    	<div class="contactentry">
    		<h1>BatchProcess</h1>
    		 <strong>Email</strong>: <a href="mailto:[email protected]">[email protected]</a>
    		 <strong>Website:</strong> <a href="https://batchprocess.angelsix.com/">https://batchprocess.angelsix.com/</a>
    	</div>
    
    	<img src="https://www.angelsix.com/images/contact/security.png" />
    	<h2>Sales and Licensing</h2>
    	Please have all the relevant information to hand, including your Company Name, Product Title and Version etc...
    
    	<div class="contactentry">
    		<h1>Licensing Department</h1>
    		<strong>Email</strong>: <a href="mailto:[email protected]">[email protected]</a>
    		<strong>Telephone:</strong> (+44)7817900513
    	</div>
    </div>

    Yet when its rendering the page, it outputs this:

    <div class="contactdetails">
    <h1>UK Location</h1>
    <p>	<img src="https://www.angelsix.com/images/contact/general.png" /></p>
    <h2>General Inquiries</h2>
    <div class="contactentry">
    <h1>Luke Malpass</h1>
    <p>		<strong>Telephone</strong>: (+44)7817900513
    	</div>
    
    <h2>Product Help and Support</h2>
    <div class="contactentry">
    <h1>BatchProcess</h1>
    <p>		 <strong>Email</strong>: <a href="mailto:[email protected]">[email protected]</a><br />
    		 <strong>Website:</strong> <a href="https://batchprocess.angelsix.com/">https://batchprocess.angelsix.com/</a>
    	</div>
    
    <p>	<img src="https://www.angelsix.com/images/contact/security.png" /></p>
    <h2>Sales and Licensing</h2>
    <p>	Please have all the relevant information to hand, including your Company Name, Product Title and Version etc…</p>
    <div class="contactentry">
    <h1>Licensing Department</h1>
    <p>		<strong>Email</strong>: <a href="mailto:[email protected]">[email protected]</a><br />
    		<strong>Telephone:</strong> (+44)7817900513
    	</div>
    
    </div>
    
    		</div>
    	</div>
    </div>

    Notice the <P> tags its added everywhere and not even closed them. In effect, this has messed my css styling up, namely my image is float: left; and because it has put it in a <p> it does not float to anything.

    Anyone know why this is and how to stop it?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter malpass

    (@malpass)

    By the way, the first examples are what is actually stored in the mySQL database AFTER posting, which I also had to fix by manually editing in phpAdmin. But even when the database is correct, the rendered output still has phantom entries.

    Here is another example:

    Original:

    If you would like bespoke software, do not hesitate to contact us. Take a look
    at our Services for pricing and availability.
    
    <div class="productentry"> <img src="https://www.angelsix.com/images/products/batchprocess.png" />
    <h1>BatchProcess v1.2</h1>
    THE automation tool for engineers!
    <ul>
    	<li>Save an entire assembly in any 28 native formats in 3 minutes.</li>
    	<li>Print off all 100s of drawings for production in just one click.</li>
    	<li>Set custom properties for every part in an assembly in one go.</li>
    	<li>Update all drawing templates with new revisions without hassle.
    And much more...</li>
    </ul>
    <a href="https://batchprocess.angelsix.com">Visit website for more details</a>
    </div>

    Rendered in IE7 & FF2:

    If you would like bespoke software, do not hesitate to contact us. Take a look
    at our Services for pricing and availability.
    
    <div class="productentry"> <img src="https://www.angelsix.com/images/products/batchprocess.png" />
    
    <h1>BatchProcess v1.2</h1>
    THE automation tool for engineers!
    
    <ul>
    
    <li>Save an entire assembly in any 28 native formats in 3 minutes.</li>
    <li>Print off all 100s of drawings for production in just one click.</li>
    <li>Set custom properties for every part in an assembly in one go.</li>
    <li>Update all drawing templates with new revisions without hassle.
    And much more…</li>
    </ul>
    <a href="https://batchprocess.angelsix.com">Visit website for more details</a>
    </div>

    Notice it is adding </p>’s randomly creating invalid html

    Thread Starter malpass

    (@malpass)

    Sorry, I double pasted the same code in last post. It rendered as:

    <p>If you would like bespoke software, do not hesitate to contact us. Take a look<br />
    at our Services for pricing and availability.</p>
    <div class="productentry"> <img src="https://www.angelsix.com/images/products/batchprocess.png" /></p>
    <h1>BatchProcess v1.2</h1>
    <p>THE automation tool for engineers!</p>
    <ul>
    
    <li>Save an entire assembly in any 28 native formats in 3 minutes.</li>
    <li>Print off all 100s of drawings for production in just one click.</li>
    <li>Set custom properties for every part in an assembly in one go.</li>
    <li>Update all drawing templates with new revisions without hassle.<br />
    And much more…</li>
    </ul>
    <p><a href="https://batchprocess.angelsix.com">Visit website for more details</a>
    </div>
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Pages not rendering actual html code written’ is closed to new replies.