Several days ago I got a feedback that asked me about how I added video post format into my Minds (TwentyEleven child theme). Unfortunately I could not reply the feedback yet since I am new to the contact form system by Jetpack (Automattic). I guess the feedbacks would appear in my email, instead, it appeared on the feedbacks menu on the dashboard (shame on me 😛 ). That’s why I would like to try to explain here the way I added video format into child theme, in this case, Minds child theme.
[contentblock id=1 img=adsense.png]
In summary, these were what I did to activate video format in my child theme:
- Firstly, I made a function that registered video as one of new post format add_theme_support() in the functions.php of my child theme. you can read it here;
- Then I copied file of content-image.php from the parent theme (TwentyEleven) into my child theme directory and named it content-video.php (It should be the same as the value of ‘video’ that I added before). Why content-image.php? because I thought it was closed to the video format which was I wanted 😀
- After that, I tried to make some post with the video format and it worked well, you should too;
- However I would like to make it fluid since TwentyEleven is responsive theme. So I added Nick La’s trick to make video width fluid when it is seen using smaller display.
That’s all, and you can see on example of this video format. Thanks, hope it will be useful 🙂