Title: Customize plugin files using child theme
Last modified: August 30, 2016

---

# Customize plugin files using child theme

 *  [JD](https://wordpress.org/support/users/jutta0303/)
 * (@jutta0303)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/customize-plugin-files-using-child-theme/)
 * Hi,
 * I want to set dimensions on two images contained in one of my plugin, Youtube
   Embed Plus. I’ve successfully done so in the plugin’s .php file where the images
   are getting called from.
 * I’m using the Divi theme from Elegant Themes.
 * Here’s the original code for one of the images:
    `'<div class="epyt-gallery-playhover"
   ><img class="epyt-play-img" src="' . plugins_url('images/playhover.png', __FILE__).'"/
   ><div class="epyt-gallery-playcrutch"></div></div>' .`
 * And here’s where I’ve added dimensions to it:
    `'<div class="epyt-gallery-playhover"
   ><img width="30px" height="22px" class="epyt-play-img" src="' . plugins_url('
   images/playhover.png', __FILE__) . '" /><div class="epyt-gallery-playcrutch">
   </div></div>' .`
 * I make those changes in the original plugin file, but I’d like to set it up in
   my child theme. My understanding is that, I can add plugin files into a child
   theme, but the way I’ve done it, doesn’t appear to work for me.
 * The original file is in this path: /wp-content/plugins/youtube-embed-plus/youtube.
   php
    I set up a copy of the file with the dimensions set for the two images here:/
   wp-content/themes/divi-child/youtube-embed-plus/youtube.php
 * My changes don’t seem to be seen by browsers when I set them up in the child 
   theme like that. Can you see why this may not be working, and let me know what
   I need to change for this to work?
 * Thank you!

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

 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/customize-plugin-files-using-child-theme/#post-6780311)
 * Do you mean YouTube Advanced Embed by embedplus?
 * It sounds like this plugin enables template overrides by placing them in the 
   active theme’s folder structure, is this what you’re trying to do?
 * If yes to both, you should have better luck asking in the dedicated plugin support
   forum:
    [https://wordpress.org/support/plugin/embedplus-for-wordpress](https://wordpress.org/support/plugin/embedplus-for-wordpress)
 *  [Marios Alexandrou](https://wordpress.org/support/users/marios-alexandrou/)
 * (@marios-alexandrou)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/customize-plugin-files-using-child-theme/#post-6780314)
 * Take a look at the Real-Time Find and Replace plugin which allows you to change
   the output from plugins and themes without modifying plugin or theme files. You
   tell the plugin to search for the code you want to replace and then provide the
   replacement code.
 * Full disclosure: I’m the plugin developer, but I do similar stuff you’ve described
   all of the time.
 *  Thread Starter [JD](https://wordpress.org/support/users/jutta0303/)
 * (@jutta0303)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/customize-plugin-files-using-child-theme/#post-6780334)
 * Thanks bcworkz, I’ll check out their forum. That appears to be the same plugin,
   although it’s confusing because they seem to call their plugin many different
   names…
 * Thanks Marios, I’m not a huge fan of having too many plugins, because I oversee
   so many different websites in my company. Too many plugins, too much to keep 
   updated. But I’ll keep your plugin in mind. Thanks.

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

The topic ‘Customize plugin files using child theme’ is closed to new replies.

## Tags

 * [child theme](https://wordpress.org/support/topic-tag/child-theme/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [plugin customization](https://wordpress.org/support/topic-tag/plugin-customization/)

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 3 replies
 * 3 participants
 * Last reply from: [JD](https://wordpress.org/support/users/jutta0303/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/customize-plugin-files-using-child-theme/#post-6780334)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
