Support » Fixing WordPress » Putting HTML in the sidebar?

  • I am setting up a blog for a friend who is currently using Blogspot. He wants a little graphic weather routine, “Weather Pixie”, to appear in the sidebar just like in his Blogspot. This is a snip of HTML that inserts a link to an image that can be clicked to go to another URL. However, I don’t see any way to include HTML in the sidebar.

    Question: can I do this? And if so, how?

    Any tips and advice gratefully received!

    TIA,

    Malcolm Johnson.

Viewing 4 replies - 1 through 4 (of 4 total)
  • I create a WHATEVER.php file in the main directory , put the ads in that in plain old html and then use the ‘include’ command in the sidebar code to call it into place.

    <?php include(“WHATEVER.php”);?>

    Ummmm, why not just put the HTML right into the theme’s sidebar.php?

    Cos sometimes it messes up ,
    and its a lot easier to play with a snippet all on its own..
    Im not saying im right.. only trying to help!

    Thread Starter mjohnson

    (@mjohnson)

    Thanks to Viper007Bond I’ve got it working OK – just slipping the HTML in does the trick. I take splosh’s point about messing things up, and will try his ‘include’ trick as well.

    Thanks for the rapid, clear, and very helpful replies!

    Malcolm.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Putting HTML in the sidebar?’ is closed to new replies.