Hello, pakpenyo.
This would be possible, but is currently not set-up to work this way.
Perhaps in a future update I can try adding this option to a config page.
Thanks for the idea,
Atg
Plugin Author
Scott
(@scottsweb)
This would actually be very easy to do. In your themes header.php you would need to add something like:
<html class="<?php echo mobble_body_class(); ?>">
Enjoy
@aaron,
I use the plugin without config page. I’ve done implement this plugin to my theme function (using roots framework with custom css, not bootstrap).
@scott,
I have not try it but i think it will produce duplicate class between html and body.
Plugin Author
Scott
(@scottsweb)
It won’t duplicate the classes providing the setting in the theme options remains unchecked.
It’s not working scott.
only Array at html class. From wp_debug:
Array to string conversion
Missing argument 1 for mobble_body_class()
head.php
<html class="no-js <?php echo mobble_body_class(); ?>" <?php language_attributes(); ?>>
Plugin Author
Scott
(@scottsweb)
O yes. Apologies. Try this instead then:
Add the following to your theme functions.php file:
if ( function_exists('mobble_body_class') ) {
function mobble_html_class() {
$array = mobble_body_class();
return implode( " ", $array);
}
}
Then on in your head.php:
<html class="no-js <?php if ( function_exists('mobble_html_class') ) { echo mobble_html_class(); } ?>" <?php language_attributes(); ?>>
That extra function will convert the array to a string.
That’s great! It’s work fine.
Thanks a lot scotts.