Title: HTML code not working in sidebar
Last modified: August 20, 2016

---

# HTML code not working in sidebar

 *  Resolved [vlgee](https://wordpress.org/support/users/vlgee/)
 * (@vlgee)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/html-code-not-working-in-sidebar/)
 * Hi,
 * I am trying to help a friend fix her website. She is using the Elegant Real Estate
   theme, and she wants a custom search in the sidebar or on a separate page. Her
   Real Estate office gave me the code to use for that, but it isn’t working.
 * When I put it in a widget in the sidebar, I get an error message way off to the
   right, outside of the sidebar.
 * I tried putting it in a page, and that does not work either (see page names “
   search”).
 * The website address is [http://homesbyangelina.com](http://homesbyangelina.com)
 * The code I am using is:
 *     ```
       <table width=100% border=0>
   
           <tr>
   
               <td align=center>
   
                   <iframe src="
   
               </td>
   
           </tr>
   
       </table>
       http://angelinagoveia.cbbain.com/agentmap.aspx?angelinagoveia" alt="CBBain Puyallup Homes for Sale" style="border:solid 0px white;" width="263px" height="281px" scrolling=no></iframe>
       ```
   
 * Any help is appreciated.
 * Thank you,
    Vicki

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/html-code-not-working-in-sidebar/#post-2755945)
 * I’m not entirely clear on what you are trying to do, but the code above has the“
   http…” in the wrong place entirely. I’m assuming the URL is the source for the
   iframe? In that case, it has to go in the iframe tags — but you have a bunch 
   of table tags mixed in there.
 * Try this:
 *     ```
       <table width=100% border=0>
   
           <tr>
   
               <td align=center>
   
                   <iframe src="http://angelinagoveia.cbbain.com/agentmap.aspx?angelinagoveia" alt="CBBain Puyallup Homes for Sale" style="border:solid 0px white;" width="263px" height="281px" scrolling=no></iframe>
   
               </td>
   
           </tr>
   
       </table>
       ```
   
 *  Thread Starter [vlgee](https://wordpress.org/support/users/vlgee/)
 * (@vlgee)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/html-code-not-working-in-sidebar/#post-2755948)
 * Thank you, WPYogi! That appears to have resolved the issue. I will have to adjust
   the size if she wants it in the sidebar, but that’s easy enough.
 * Thanks again!
    Vicki

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘HTML code not working in sidebar’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [vlgee](https://wordpress.org/support/users/vlgee/)
 * Last activity: [13 years, 12 months ago](https://wordpress.org/support/topic/html-code-not-working-in-sidebar/#post-2755948)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
