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.phpMy 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!
- The topic ‘Customize plugin files using child theme’ is closed to new replies.