Developers

Technical forum about Content Type or System Plugin development.
Here you can apply for developer access.

how to change button color in a module for drupal

Forums: 
Hello. I am trying to change the color of the buttons in red so I can deliver a h5p module to a client under drupal. I recovered a css file on the forum allowing it but then I do not know how to integrate it into my h5p file. It annoys me to force my client to install a module that I have created and I do not know the created one. Can you help me ?

wordpress plugin - instantiate the plugin after ajax call

Forums: 

Hi,

I've installed the h5p plugin in wordpress and i'm calling the shortcode as usual. This doesn't work on posts that are loaded via ajax, it returns an empty iframe. 

I could instantiate the plugin via H5P.init(); on javascript, but H5P doesn't exist. Which script should I enqueue for it to work?

The js AJAX event:

jQuery.post(ajax_object.ajax_url, data, function(response) {

$('.course-content').html(response);

});

where "response" comes from this php function

 

Pages