Hi there,
I have a weather page: http://www.dansmith.ca/weather
And I want to put a small box with the current conditions into the sidebar, but not sure how to go about doing it. I tried Satollo's "Include-It" but can't figure it out. It's highly rated, but the documentation is very poor.
The file containing the current weather stats is a small HTML file called temperature.htm.
Can anyone fill me in on how to accomplish this? I've struggled with it for a short while now and am getting a bit frustrated.
I can get it to display as a normal page, but not in the sidebar. You can see what I already have at: http://www.dansmith.ca/blog/?page_id=322
Many thanks,
Dan
roy-duff
Member
Posted 2 years ago #
Why not just use a text widget and put the html inside that ?
italianst4
Member
Posted 2 years ago #
Dan,
You can add HTML code to a Text Widget. Take all of the HTML code that you have in your temperature.htm file and paste it into a new Test widget on your site's sidebar.
Here's some more details on the Text Widget: http://en.support.wordpress.com/widgets/text-widget/
Thanks,
The problem is that with the weather software I'm using, you create all of the text in a file called an .HTX file with your coding for temperature, dew point, humidity CODES, then tell it to convert this file with the codes into an .HTML file with all of the codes translated into numbers. If I were to insert the generated .HTML file into the sidebar, I'd have to convert the whole WordPress page into .HTML, would I not? My weather station software wouldn't know what to do with WordPress page.
Aaarrrg... I even set up a new WP page here:
http://www.dansmith.ca/weather
When I use the code from Include-It, it comes through as HTML text in my sidebar...
HTTP includes don't work, php includes don't work...
Any suggestions?
roy-duff
Member
Posted 2 years ago #