i don't want the block hovers on my site for any users, including myself when logged in as uid 1. how do i turn it off?

Comments

jrefano’s picture

Title: how to disable block hovers » how to disable admin-inline

updated title to be more accurate. i see the permissions, but im logged in as the master user, and i cant get rid of the inline stuff. it's causing issues for my theme. how to turn off?

jrefano’s picture

updated title to be more accurate. i see the permissions, but im logged in as the master user, and i cant get rid of the inline stuff. it's causing issues for my theme. how to turn off?

m.stenta’s picture

CSS Workaround:

div.admin-inline {display: none !important;}

The code will still be added to the page, but it won't show up.

jrefano’s picture

Category: support » feature

well, thats easy enough -- im going to change this to a feature request, as it'd be nice to see this in the UI.

deciphered’s picture

I second this request.

Edit: While the above CSS does stop it showing, the reason I want it removed is due to some of the styles it inserts (position: relative) breaks my design for uid1, so the damage is still being done.

aaron stanush’s picture

+1 Unfortunately, a lot of design happens while logged in as user 1, so it's helpful to be able to disable this.

aaron stanush’s picture

From readme.txt:

You can now disable inline editing by adding the following line to your theme's .info file:

*Correction*

admin[admin inline] = 0

However this will disable this feature for all users on the site, not just UID 1.

kevinquillen’s picture

I've been looking for a way to do this.

Question though, why do you have to do it in the info file, and its not configurable through the website?

mikey_p’s picture

admin[admin_inline] = 0

doesn't seem to work at all.

I would normally expect things like this to only show up after refreshing the module/theme cache from visiting admin/build/modules or admin/build/themes, but since this theme is a hack, it seems to be impossible to refresh this.

Why is slate not a separate theme?

kevinquillen’s picture

There is a permission rule for 'admin-inline' but it seems to persist for UID 1, at least for me.

mikey_p’s picture

gh0st25, that's how Drupal permissions work, used id 1 always is granted access to every permission.

The real problem is that because of the way this theme is included with a module, there is no way to force a refresh of the theme info, without deleting it directly from the system table.

kevinquillen’s picture

Then how would you turn it off?

tim.plunkett’s picture

admin[admin inline] = 0
worked for me. space, not underscore.

kevinquillen’s picture

Shouldn't have to do that though. It should be a flag in the interface, not putting a flag in the .info file.

kevinquillen’s picture

admin[admin inline] = 0

Doesn't work for me.

aaron stanush’s picture

Title: how to disable admin-inline » How to disable the inline admin links

@stripped your speech: Make sure you clear your theme registry every time you modify your theme's .info file

* I also changed the issue title to be more descriptive

tim.plunkett’s picture

It still persists for UID 1, even with admin[admin inline] = 0

Daniel Norton’s picture

None of the above worked for me, but adding this to my theme’s CSS file did:

div.admin-links {
  display: none !important;
}

(Yes, almost the same as #3 above, but the class name is different.)

If you want to get rid of the HTML completely, you can add this to your theme's template.php (replace “THEME” with your theme’s name):
function THEME_links(&$links) {
if (variable_get('THEME_links_disable',TRUE)) {
$links = array();
}
}

You can turn it back on by setting THEME_links_disable to FALSE.
[No, that removes links added by other components, too. —DN]

tim.plunkett’s picture

I added this to my preprocess functions
$vars['admin_links'] = '';

traviscarden’s picture

Title: How to disable the inline admin links » Add option to disable inline admin links through GUI

Adding admin[admin inline] = 0 to my theme's .info file works for me once I visit admin/themes/select to refresh it. I agree, nevertheless, that there ought to be an option to do this through the GUI.

@mikey_p: The module maintainers apparently realized the error of their ways with Slate, as you can see on the module page: "The 2.x branch no longer recklessly smuggles a theme into your install through a module. You can use admin with the theme of your choice. The "slate" theme previously included with admin has been discontinued -- instead, our admin theme and icon design work continues in Rubik."

kevinquillen’s picture

Yeah, but the new Rubik theme doesn't gel for me too much. The slick animations and javascript can bog down the browser performance especially on different hardware.

RavenHursT’s picture

Seriously? This feature has been sitting here for OVER a year? How hard can it possibly be to add a checkbox to the admin module to allow for the display of these things or not?? I'm going to look into this. My first module edit and patch.. here I go, wish me luck!