Title: Can I move js-stuff to function.php?
Last modified: August 20, 2016

---

# Can I move js-stuff to function.php?

 *  Resolved [Peetra](https://wordpress.org/support/users/peetra/)
 * (@peetra)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/can-i-move-js-stuff-to-functionphp/)
 * I have made some changes to wp-includes/js/quicktags.js aaaaccording to v [http://www.chasingeyes.com/adding-custom-buttons-to-wordpress-editor-without-using-plugin.html](http://www.chasingeyes.com/adding-custom-buttons-to-wordpress-editor-without-using-plugin.html)
   and I would like to learn howto implement these changes to my child theme, if
   it is possible.

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

 *  [Christine Rondeau](https://wordpress.org/support/users/crondeau/)
 * (@crondeau)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/can-i-move-js-stuff-to-functionphp/#post-2478754)
 * The files in wp-includes are part of the WordPress core files. You should NEVER
   EVER edit core files.
 *  [Kailey (trepmal)](https://wordpress.org/support/users/trepmal/)
 * (@trepmal)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/can-i-move-js-stuff-to-functionphp/#post-2478769)
 * Firstly, as Christine says, [don’t hack core](http://codex.wordpress.org/images/b/b3/donthack.jpg)!
 * Adding buttons to the editor is more plugin-territory than theme-territory.
 * Here’s a demo plugin that shows how you can easily add custom buttons (including
   ones that prompt for input): [https://gist.github.com/1323851](https://gist.github.com/1323851).
 * Alternatively, a very simple plugin with an easy-to-use admin for adding custom
   plugins: [http://wordpress.org/extend/plugins/post-editor-buttons-fork/](http://wordpress.org/extend/plugins/post-editor-buttons-fork/)
 *  [Kailey (trepmal)](https://wordpress.org/support/users/trepmal/)
 * (@trepmal)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/can-i-move-js-stuff-to-functionphp/#post-2478785)
 * [5 hrs later] I just realized I said “adding custom plugins” when I meant “adding
   custom buttons”
 *  Thread Starter [Peetra](https://wordpress.org/support/users/peetra/)
 * (@peetra)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/can-i-move-js-stuff-to-functionphp/#post-2478902)
 * I am well aware of the the recommendations not to kill kittens, but until now
   I had just a hunch of what way to go with plugins. It was just a few week ago
   that I learned how to correctly mingle with a theme.
 * I have had one very unfortunate incident with a plugin that wasn’t up to date
   and our server almost got blacklisted for spamming when the plugin was abused
   by some evil unknown soul. After that WP project was over I happily hacked the
   core of the next WP-project, knowing that I at least don’t have to trust anybody
   else’s plugins. Now this is my fourth WP-installation I am working with and it
   is code wise the smallest, noone else is telling me hoe it should look like and
   what features there should be. So I thought that it would be great to do it right
   this time.
 * I actually managed to create my own personal plugin for my editor and hope for
   more support in the future if I dare take on some heavier stuff.
 * I am so happy Kailey that you pulled me towards the right direction giving me
   something that I actually understood how to use. Here is my personal output, 
   I would love to hear what still can be made better whitin that!
 * [https://gist.github.com/1555891](https://gist.github.com/1555891)
 * Cherrypie!
    // A greatful Peetra.

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

The topic ‘Can I move js-stuff to function.php?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [Peetra](https://wordpress.org/support/users/peetra/)
 * Last activity: [14 years, 4 months ago](https://wordpress.org/support/topic/can-i-move-js-stuff-to-functionphp/#post-2478902)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
