Title: Finding Widget Code   adding code to dyanamic sidebar
Last modified: August 19, 2016

---

# Finding Widget Code adding code to dyanamic sidebar

 *  [dozer](https://wordpress.org/support/users/dozer/)
 * (@dozer)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/finding-widget-code-adding-code-to-dyanamic-sidebar/)
 * I am just upgrading my [building blog](http://www.coolthaihouse.com) to wordpress
   2.6. I am more used to the previous versions, and am having trouble with the 
   concept of widgets. On my site right now I have 4 widgets selected, categories,
   archives, links and recent comments. Take the recent comments widget for example,
   how do I determine what plug-in that equates to or where the code is?
 * Also, how do I add a older plug in, such as top 10, into my dynamic widget sidebar?
 * My previous theme had code like this:
 *     ```
       <li><h2><?php _e('Hot Topics'); ?></h2>
           <ul>
           <?php show_pop_posts(); ?>
          </ul>
         </li>
       ```
   
 * If the plug-in is not widget ready can code be added into a dynamic sidebar?
 * Help is greatly appreciated!

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

 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [17 years, 8 months ago](https://wordpress.org/support/topic/finding-widget-code-adding-code-to-dyanamic-sidebar/#post-828211)
 * > _Take the recent comments widget for example, how do I determine what plug-
   > in that equates to or where the code is?_
 * You don’t. Why would you care where the code is? You’re not supposed to edit 
   the code, that’s the whole point of using widgets. They’re a drop in sidebar 
   module, you can configure them if they have configuration options, but in theory,
   that’s supposed to be the extent of it. Sure, you could locate their code and
   edit them, but the point is to not have to do that.
 * If you want to edit the sidebar code directly, then don’t use widgets. Just edit
   your theme’s sidebar.php file.
 *  Thread Starter [dozer](https://wordpress.org/support/users/dozer/)
 * (@dozer)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/finding-widget-code-adding-code-to-dyanamic-sidebar/#post-828278)
 * > Sure, you could locate their code and edit them, but the point is to not have
   > to do that.
 * How would I do this?
 * I have found the need to tweak the code in many plug-ins.
 * I like using the widgets but it would be nice if they could be used in addition
   to being able to modify the sidebar.php directly.

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

The topic ‘Finding Widget Code adding code to dyanamic sidebar’ is closed to new
replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [dozer](https://wordpress.org/support/users/dozer/)
 * Last activity: [17 years, 8 months ago](https://wordpress.org/support/topic/finding-widget-code-adding-code-to-dyanamic-sidebar/#post-828278)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
