HTML showing in sidebar instead of widget
-
I am attempting to cut and paste the html code for CafeMom into a text widget. When I copy their code into the text box, and save changes, the site shows the actual html code on the sidebar, along with the image that the html code is supposed to create. No matter what codes I put in there (from other sites that offer html to advertise on your blog) I get the same result. What am I doing wrong. Here is the html code I am using?
<style> div.cm-widget-tall-1746 {width:140px; border-width:2px; border-style:solid; border-color:silver; background:url(‘http://images.cafemom.com/images/library/widgets/wid_bg_green.gif’) repeat-x top left; padding:0 auto; margin: 5px 0; text-align:center;font-family:’Lucida Grande’,Tahoma, Arial, sans-serif; overflow:hidden;} div.cm-widget-tall-1746 a {color:black !important; text-decoration:none;} div.cm-widget-tall-1746 a:hover {text-decoration:underline; color:black;} div.cm-widget-tall-1746 h2.cm-h2 { display:block; margin:5px 0 0 0; padding:0 5px; border:none; } div.cm-widget-tall-1746 h2.cm-h2 a{font-size:16px;} div.cm-widget-tall-1746 h3.cm-h3 { border-top-width: 2px; border-top-style: solid; border-top-color:silver; padding:5px 0; margin:0; background-color:white; font-size:16px;} div.cm-widget-tall-1746 img.avatar {margin-top:5px; padding:5px; border-width:1px; border-style: double; border-color:silver; background-color:white;} div.cm-widget-tall-1746 p.cm-p {font-size:11px; padding: 0 5px;} div.cm-widget-tall-1746 img {border:none;} </style> <div id=”cm-widget-tall-1746″ class=”cm-widget-tall-1746″> <h2 class=”cm-h2″>The Mom’s Daily Dose Secret Awesome Group of Awesome Blogging Power</h2> <p class=”cm-p”><img src=”http://images.cafemom.com/images/user/groups/grp_62882_1187123201_md.jpg” class=”avatar” alt=”The Mom’s Daily Dose Secret Aw”></p> <p class=”cm-p”>Check out my group at CafeMom</p> <h3 class=”cm-h3″><img src=”http://images.cafemom.com/images/library/widgets/cm_logo.gif” alt=”CafeMom”></h3> </div>
-
Can you first post the link to your blog.
I just tested the code myself and it must be some sort of javascript code because javascript code isn’t allowed on WordPress.com due to security issues.
- The topic ‘HTML showing in sidebar instead of widget’ is closed to new replies.