Secondly, imo you should at the least use a cdn to call the files, otherwise you’ll need to manually update them on new releases. Why don’t you want to use the plugin, and save yourself all of this ? I would love to answer with as much detail as in the question, but I don’t think there’s time. Reason: Moved to Fixing WordPress, this is not an Everything else WordPress topic This topic was modified 1 year, 11 months ago by Jan Dembowski. This topic was modified 1 year, 11 months ago by willowen100. Is it as simple as creating a new page, adding a Custom HTML WordPress block and inserting the video-js code, so long as the CSS class and/or ID match? My last question is regarding calling/embedding the video-js itself into a page. Would it show the page or will it show restricted access warning? If I do have restrictions in place on the video-js sub-directory itself, what happens if I moved the video-js directory back to the root directory and then try to access the page that has the same name. htpasswd files and try some experimenting. In the mean time while waiting for replies I will look into. As expected, I can now reach the video-js sub-directory from the URL at At least it doesn’t clash with the page. Whilst writing this post I have since moved the video-js directory from / to /wp-content and re-adjusted the header.php file to point the JavaScript and CSS files at the new location. Sadly I’ve never used them before so might need some pointers please if this is the case.Įssentially I want the video.js directory to be non-existent/not view-able on the front end, but still be accessible when it’s called upon in pages I embed HTML code. htpasswd files are the answer after doing some Googling so correct me If I am wrong.
My first question is, is the root directory the correct place to place a directory containing JavaScript and CSS files for video.js or should it be place somewhere else such as /wp-content for example?Īdditionally is there a way I can get WordPress to ignore the sub-directory and allow the URL to be used for pages? I think. However, after making a new page as simple as video-js (the exact same name as the sub-directory) I am presented withĤ03 Forbidden, You don’t have permission to access this resource. I have extracted the zip folder from here, renamed the folder to just video-js (so that it doesn’t contain the version numbers) and placed it in the root WordPress directory. I am fully aware that there is a plugin that allows easy embedding of video.js in WordPress, but I would like to install the files manually into the root directory of the server and call it on specific pages when I need it.
HOW TO INSTALL HTML5 HOW TO
Has anyone had any experience installing video.js manually and know how to use it with WordPress?