Possible to replace the buttons?

vev1's picture

Is it possible to replace them? I know you had mentioned eslewhere about css styling for fonts, but I was wondering if any of the graphics like buttons, smileyfaces, etc can be replaced with others?

Thanks

falcon's picture

Yeah, the buttons are all css so they may be changed with css. Currently they don't all follow the same HTML structure so replacing them all is a bit of a hazzle but we'll make it easier in the future.

NDLA for instance overrides the styles of all H5P buttons and removes all the smileys.

vev1's picture

Thanks for replying. I have followed this post's instructions for inserting the css: http://h5p.org/comment/775#comment-775

However, I'm confused about how iframe works. I see the code on GitHub but how to install it and use it on Wordpress? The documentation doesn't seem to say (sorry not a programmer).

Thanks!

vev1's picture

Hello

I realise to embed I click the Embed button and select the iframe code and paste it inside a post. However the CSS changes I made to "my.css" don't seem to have any effect. The css file is in the same directory as index.php and I placed this code in index.php <script>if (window.H5P !== undefined) { H5P.settings.core.styles.push('<?php bloginfo('template_directory'); ?>/my.css') }</script> in between </div> and <?php get_footer(); ?>   Is this correct?

Sorry forgive my ignorance.

Thanks.

vev1's picture

Hi,

Could you please tell me exactly which css file I need to modify to change the appearance of the dialog cards?

Thank you.

falcon's picture

Yeah, the APIs for doing this is good in Drupal, but it's very hard to do this in Wordpress. Are you in a hurry or could you wait a few weeks for a version with API functions or GUI for adding css to content types?
vev1's picture

Yes I can wait. I was going to open the dialogcards.css and tinker with it... would that work?

Thanks!

icc's picture

That should work, but your changes will be overwritten when you get an update. 

falcon's picture

It would, but your changes would be overwritten next time you update your libraries.
vev1's picture

Thank you both, I look forward to the GUI in a few weeks time.

 

Veronica

vev1's picture

Hello,

Any update on this? :)

Thanks,

Veronica

falcon's picture

Hi!

We're in vacation mode here. I believe the new APIs are in place but I'm actually not quite sure. The way documented here is still supported and the new way will be documented at the same page.

There will be no GUI for adding CSS yet. We had an organization who considered sponsoring it, but I think they did it via the API instead.

icc's picture

I've updated the documentation page falcon is linking to. You should also check out the h5pmods plugin for example usage of the new APIs.