OK – Another small change. It needs to work better with mobile devices. At the moment I use the plugin “WP Mobile Detect” and add the following code to ‘custom-ribbon-maker/customribbonmaker.php’ to hide the ribbon from mobile devices. (Feel free to let me know if there is a better way…)
Directly after:
if ( ($visitor == 'all') || ($visitor == 'visitors' && (!is_user_logged_in())) || ($visitor == 'loggedin' && (is_user_logged_in())) ) {
I add:
if (function_exists('wpmd_is_notdevice') && wpmd_is_notdevice()) {
And close the bracket after:
` echo ‘</style>’;
}
}`