Title: Plugin insert code in theme question
Last modified: August 20, 2016

---

# Plugin insert code in theme question

 *  [zeaks](https://wordpress.org/support/users/zeaks/)
 * (@zeaks)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/plugin-insert-code-in-theme-question/)
 * I’m trying to make my first plugin which basically adds some defaults to a theme,
   but having trouble understanding one part.
 * I need the plugin to insert code into a couple of files in a theme, but I can’t
   find any info on how to do it.
    Example: I need to add get_sidebar to single.
   php before the get_footer then I need to add a line to the loop before the excerpt
   call and change is_search to is_search || is_home

The topic ‘Plugin insert code in theme question’ is closed to new replies.

 * 0 replies
 * 1 participant
 * Last reply from: [zeaks](https://wordpress.org/support/users/zeaks/)
 * Last activity: [14 years, 9 months ago](https://wordpress.org/support/topic/plugin-insert-code-in-theme-question/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
