Title: Inserting a widgit on sidebart with code
Last modified: August 19, 2016

---

# Inserting a widgit on sidebart with code

 *  Resolved [tristanofvp](https://wordpress.org/support/users/tristanofvp/)
 * (@tristanofvp)
 * [18 years ago](https://wordpress.org/support/topic/inserting-a-widgit-on-sidebart-with-code/)
 * Hi I recently downloaded wp-polls and I want to know how to insert it with html
   code on my side bar. Everything on my right side bar is done with html and I 
   can’t put widgets on there without ruining it.
 * Basically I want to know how to insert wp-polls by code, I’ve done this with 
   wordspew, but it came with a picture showing you what code to type in.
 * My site is [http://www.vandalizedmusic.com](http://www.vandalizedmusic.com) if
   you need to look at it.
 * Thanks,
    Tristan

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

 *  [Aimee](https://wordpress.org/support/users/aimeeish/)
 * (@aimeeish)
 * [18 years ago](https://wordpress.org/support/topic/inserting-a-widgit-on-sidebart-with-code/#post-778259)
 * You add this into a template file:
 *     ```
       <?php if (function_exists('vote_poll') && !in_pollarchive()): ?>
       <li>
          <h2>Polls</h2>
          <ul>
             <li><?php get_poll();?></li>
          </ul>
          <?php display_polls_archive_link(); ?>
       </li>
       <?php endif; ?>
       ```
   
 * It’s always helpful to use the Documentation the plugin authors provide. I found
   that code through the WP-Plugins doc: [http://lesterchan.net/wordpress/readme/wp-polls.html](http://lesterchan.net/wordpress/readme/wp-polls.html)
 *  Thread Starter [tristanofvp](https://wordpress.org/support/users/tristanofvp/)
 * (@tristanofvp)
 * [18 years ago](https://wordpress.org/support/topic/inserting-a-widgit-on-sidebart-with-code/#post-778373)
 * Thanks appreciate it!

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

The topic ‘Inserting a widgit on sidebart with code’ is closed to new replies.

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)
 * [sidebar](https://wordpress.org/support/topic-tag/sidebar/)
 * [widget](https://wordpress.org/support/topic-tag/widget/)

 * 2 replies
 * 2 participants
 * Last reply from: [tristanofvp](https://wordpress.org/support/users/tristanofvp/)
 * Last activity: [18 years ago](https://wordpress.org/support/topic/inserting-a-widgit-on-sidebart-with-code/#post-778373)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
