HTML Error using Custom Code

Is the Custom Code draggable element in Upfront prone to giving errors if the code contains broken links to images? I'm trying to figure out why it's not saving the html? It saves the css. Very frustrating!

Comments 10

HTML element checks if HTML is correct. If there any errors in code it wont let save code. But it doesn't check if links are broken. I tested that on my site and I was able to save inccorect path to image. However I found that

<img src="dkjasnkljsfdn.jpg" />

will not save. But

<img src="dkjasnkljsfdn.jpg">

will save. Check if your img tags are not self closed. If this is not the case could you share code with me so I could check it?

I think it's doesn't like when I copy and paste the code into the custom css editor. When I type it in manually it works fine. Is there a workaround that would allow my to copy and paste code?
Here is my code:

<div class ="people-text">
<h2>Patrick Rydzewski </h2>
<h3>Founder</h3>
<h5>As an FAA rated ATP (Airline Transport Pilot) with over 3,000 flight hours, Patrick holds a World Speed Record, and is type rated in various turbine aircraft. After several years as a professional pilot, his focus was shifted away from full time flying and into a aircraft sales and consulting.
</h5>
</div>
</div>

<div class="people-block">
<div class="people-pic">
<img src="images/img-patrick-r.jpg" width="215" height="215" alt="">
</div>
<div class="people-text">
<h2>Patrick Rydzewski </h2>
<h3>Founder</h3>
<h5>As an FAA rated ATP (Airline Transport Pilot) with over 3,000 flight hours, Patrick holds a World Speed Record, and is type rated in various turbine aircraft. After several years as a professional pilot, his focus was shifted away from full time flying and into a aircraft sales and consulting.
</h5>
</div>
</div>

As you can see I removed / from img tag and removed spaces before class names. It had nothing to do with pasting code. Your CSS is working correctly.

I'm still having issues with pasting code into the HTML elements and getting errors. This time it's an Iframe (<iframe src="http://www.controller.com/listings/aircraft/for-sale/list/?PCID=1283445&dlr=1" width="100%" frameborder="0" scrolling="no"></iframe&gt:wink: . It just won't let me save.

Perhaps it's the browser? I'm using Firefox v48.0.1. Should I try on Chrome, or would it not matter?

You'll have to add the script in the <head> tag, rather than including it together in the same custom code section. What you'll have to do is create a folder /mu-plugins inside you /wp-content/ folder using a FTP client, and create a php file with any name(eg: test.php) inside /mu-plugins folder, and add the following code in it:

How do you rate me?

Thank you for rating your experience!

We’re thrilled to hear you had a great experience with . Would you like to leave a comment about your experience?
Thanks for voting on your experience with , we’d love to get some feedback please.
Ohh no! We’re really sorry to hear you didn’t have a pleasant experience with , we’re always looking at how we can improve and would appreciate you provide some further feedback here please.
Type your feedback here

it's great that you had a positive one. Based on your experience in this ticket would you please be kind enough to rate us externally on: