WordPress.org

Ready to get started?Download WordPress

Forums

How to insert HTML into sidebar (6 posts)

  1. dan401
    Member
    Posted 4 years ago #

    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

  2. roy-duff
    Member
    Posted 4 years ago #

    Why not just use a text widget and put the html inside that ?

  3. Anthony Montalbano
    Member
    Posted 4 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/

  4. dan401
    Member
    Posted 4 years ago #

    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.

  5. dan401
    Member
    Posted 4 years ago #

    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?

  6. roy-duff
    Member
    Posted 4 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic