Video's don't display in my theme
-
Hi all,
The video’s on my site display (and play) perfectly in a standard theme like Twenty Fifteen, both if I put them in the WP Page Editor and when I put them in a PHP template. Also, I’ve used several video plug-in with their own shortcodes, and they all work fine – in Twenty Fifteen.
In my own theme, however, nothing works at all when it comes to videos. Instead of the video displaying, it simply shows the shortcode (or url, as the case may be) AS TEXT. Not good of course.
I’m building and using a child theme that simply consists of a style.css file, a small functions.php file, and a lot of page template files (i.e. PHP). Nothing of all this seems to have to do anything with video content.
As for the parent theme (called Naked WordPress), I’ve deleted all its (viewable) files, because it only hindered the development. I’ve simply been building my own web site in the child theme, and the presence of the parent theme (or presumably, ANY parent theme) only interfered with my own ideas of how the site should look, while offering no advantages – hence at some point I decided to do everything myself in the child theme, and deleted all of the parent theme’s (viewable) code.
But could it be that, in doing so, I’ve also deleted something that should be there in order for video’s to display? I would expect that the ability to display video’s is a feature of WordPress itself, independently from the theme used. But maybe a theme should somehow enable that ability?
In that respect, I note that the video’s do not diplay in the (now virtually empty) parent theme either.
Incidentally, this is the only problem of this kind (i.e. theme-dependent problem) that I’ve had so far. Unlike video’s, images look just fine in my own child theme, and all plug-ins (like a calendar and maps) work and display fine.
So… if anyone has any idea of what might be going on here – and for all I know, it could be something really silly – I’ll be glad to hear it. Thanks.
Hagelslag.
- The topic ‘Video's don't display in my theme’ is closed to new replies.