I have checked the setting to hide the admin toolbar.

Is this setting also suppose to work on the admin_menu module?

It has no effect on my site at all. The admin menu remains in place when I edit any CSS file.

Comments

guybedford’s picture

This is the core administration menu in D7. If an update to core has caused the css class to change I can look into updating this with the next release.

inventlogic’s picture

Yes the admin_menu module is not the core toolbar module so the div ids are different.

Can you please update the live_css module to test if the admin_menu module is installed, maybe module_exists and include in the css.js a hide and show section for the admin_menu module div wrapper #admin-menu as well as a hide and show for the #toolbar div with an if to test which div to enable or disable?

I edited the css.js file and changed #toolbar to #admin-menu which is the div wrapper id around the admin_menu toolbar.

The following works ok on my setup.

Around line 289 change to the following

        //hide admin menu d7
        if($('#admin-menu').length > 0 && Drupal.settings.live_css.hideadmin == 1){
            $('#admin-menu').css('display', 'none');
            $(document.body).removeClass('admin-menu');
            $(document.body).css('padding-top', '');
        }

Around line 341 change to the following

        //show admin menu d7
        if($('#admin-menu').length > 0){
            $('#admin-menu').css('display', 'block');
            $(document.body).addClass('admin-menu');
            $(document.body).css('padding-top', '');
        }
guybedford’s picture

Sure I will see if I can add this in the next release.

guybedford’s picture

Status: Active » Closed (fixed)

Added to master

guybedford’s picture

Added to master

guybedford’s picture

Added to master