Override /pro/cornerstone/includes/shortcodes/video-player.php in Child Theme

We’d like to make a change to the markup of the video background in the Pro theme to make it play on mobile instead of the image placeholder.

We made the change and it appears to work, but only if the change remains in the parent theme, moving it to the child theme and reverting the change in the parent does not work to override the parent file. We’ve echoed the same directory path in the child theme.

Can you let me know how we should work with this file within the child theme or other method, so that it lives through theme updates?

Hey David,

Modifying an element’s function is not recommended. Instead of doing that, I’d suggest you create your own plugin and within that plugin, your own element replicates the function of an existing element. We have a general guide on how to do that here.

Please note that this requires web development knowledge and we do not provide support for customizations. If you’re unable to follow the guide or encounter issues down the road, you’ll need to consult with a third party developer.

Thank you for understanding.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.