Need HTML advice for wordpress post/page

1 replies
  • WEB DESIGN
  • |
Thanks in advance for help with this.

I want a post with 300-500 words to have a flightstats widget at the bottom of that post.

I may have already solved this and not know it, I keep switching back and forth between the html and visual editor in Wordpress, and I'm starting to get confused. What's confusing me is, I'll insert some text for testing purposes, switch to the html editor and paste the code for the flightstats widget...great so far...page/post looks fine. When I come back to look at the html editor again, the code seems to align left and drop a couple pieces of code, the two I notice are - <html> & <body> . When I view/refresh the post it appears to remain ok.

Below is the code from flightstats, before it makes the changes I described above.

How should I add text above that code?


<html>
<body>
<iframe src="http://www.flightstats.com/go/weblet?guid=70cbe593c1d6de05:746bfced:1304c74ba40:-3afe&weblet=status&action=AirportFlightStatus&airp ortCode=DUB&airportQueryType=0" frameborder="0" scrolling="auto" width=480px height=620px></iframe>
<table width="480">
<tr>
<td width="65%" style="font-family: Arial, sans-serif; font-size: 7pt;">
Flight information is provided by <a target="_blank" href="http://www.flightstats.com">FlightStats</a>, and is subject to the FlightStats <a target="_blank" href="http://www.flightstats.com/go/About/termsOfUse.do">Terms of Use</a>.
</td>
</tr>
</table></body>
</html>


Thanks again for any help.

Cheers!
#advice #html #past or page #wordpress
  • Profile picture of the author Istvan Horvath
    1. Your posts (and Pages) in WP already have html and body tags - which means you do NOT need those! Even more: it's an error to have them twice on a webpage... WP just tries to edit out your bad code.

    2. If you work with code in post - TURN OFF the idiotic wysivyg (visual) editor: Users > My profile > disable visual gizmo... I mean turn off for good.
    Signature

    {{ DiscussionBoard.errors[4023190].message }}

Trending Topics