how to edit h5p

tamil's picture
Forums: 

i try to edit h5p file it was changed but upload that file on wordpress to changed on old h5p anyone tellme .

fnoks's picture

I would like to help you, but it's really hard understanding what kind of problem you are having or what you are trying to achieve. Please elaborate!

tamil's picture

 

For newbies like me, this documentation was difficult to understand so I thought that I could help others by detailing how I managed to do this on Wordpress.

  • put this file in a folder that you will name h5pmods and that you will create (using your FTP software) in /wp-content/plugins/
  • put a file that you will name custom-h5p.css in /wp-content/uploads/h5p/
  • in this file, add your css tweaks to H5P styles, for instance :
    <code>html.h5p-iframe .h5p-content {   font-size: 20px; /* size of the font used in H5P content */  color: #5a5a5a; /* color of the H5P content */ }</code>
  • go in your wordpress admin > plugins and activate the h5pmods plugin.
  • from now on, all your CSS modifications should apply to the embedded h5p contents of your site and your CSS overrides would be kept even after upgrading the h5p plugin.

Hope this is helpful for newbies like me !

tamil's picture

nothing happens on css files so pls helpme i try to you tube any tutorial on this but nothing in devlopement

fnoks's picture

Hi,

  • Can you check if your custom CSS file is loaded in your browser? Use the developer console to figure this out.
  • If it is loaded, maybe there are other CSS rules overriding your rules?