Hot answers tagged

5

You may have 2 toolbars enabled. One is the Drupal 7 default toolbar which in my experience most disable in favor of the the admin_menu. drush dis toolbar -y or drush dis admin_menu -y Or under the modules config page.


3

You can do this by theme difference . As you know your admin theme is different then you can apply this line of code in your custom module. function custom_page_alter(&$page) { global $theme; if ($theme == 'bartik') { unset($page['page_top']['toolbar']); } } if you using Administration menu module Then try this code function custom_page_alter(&...


3

Drupal 8 admin toolbar z-index value is 502 only, but the bootstrap default static navbar z-index value is 1000, I think, Increase the admin toolbar z-index value would fix the issue, .toolbar-oriented .toolbar-bar { z-index: 1001 /* or more */ } Place that code in your theme's custom css file :)


3

It's possible you are using a version of CKEditor (the editor, not the drupal module) that doesn't have the font size and family plugin. See the different versions at http://ckeditor.com/download (click the "Compare packages" link to see what is included in each package). On that page you can see that only the full version has the "Font Size and Family (...


3

If your using the built in D7 tool bar, take a look at Toolbar Hider. This module will hide/show the toolbar with the press of a key that you configure. It will optionally adjust the page padding to hide the white space. You can also configure if you would like to hide the toolbar by default. If your using the contributed admin menu, there is also ...


2

You're able to modify the Commerce Kickstart 2 admin menu from this path: /admin/structure/menu/manage/management It's a normal menu created during installation called "Management".


2

You could use Masquerade and create user without the permission to use the toolbar.


2

in yourwebsite.com/admin/people/permissions check that the following permission are unchecked under Node (click image to enlarge) Edit: I did testing, and it's the Administer Content, make sure you uncheck it! Also administer content types as you don't want them to have that either.


2

As per the answer by @mradcliffe, styles for the regular and active states would need to be created. However you'd want to add them as a separate library which you'd include on admin pages, rather than edit core files. So take the styles in @mradcliffe's answer, or whatever you determine to be correct, and save it to your module in css/webtrack-update-...


2

This is not a problem with the Admin Toolbar module, I think that you're not given the correct permissions. In Drupal >= 8.5 you need to give the following permissions: Use the administration pages and help Use the administration toolbar Tags: Create terms Tags: Delete terms Tags: Edit terms Access the taxonomy vocabulary overview page In Drupal < 8....


2

TLTTP; Is a core bug since 6.4 version (https://www.drupal.org/node/296693) you can use the latest version of admin_toolbar (https://drupal.org/project/admin_toolbar) which haves a submodule specific for that issue. Unfortunately this only works for 'admin_menu' menu but not the toolbar menu (the black bar on top). To hide specific toolbar elements or ...


1

Having tried to do this myself before, this is probably not a route you want to go down. This approach becomes harder to maintain as you install more modules (different modules can inject CSS on different paths), and often can turn into a maintenance nightmare. Drupal can aggregate CSS files out of the box; this is often all you need to improve performance ...


1

Not finding a built-in way to avoid the problem of missing CKEditor toolbars on conditionally displayed fields, instead of using the Conditional Fields module, I use the Asset Injector module's JS Injector to inject this JavaScript into the node add/edit page (note that the authors field is an entity reference): var el = document.getElementById("edit-field-...


1

You can use hook_page_alter() function hook_page_alter(&$page) { unset($page['page_top']['toolbar']); } Another option is Toolbar Visibility module. Remove toolbar on selected theme.


1

You can move your nav a bit below when you have an admin-logged in, try this : body.admin-menu .navbar-fixed-top { top: 30px; } Better yet, use Adminimal Theme (Admin Theme) which should automatically take care of everything.


1

This is how i add custom menu : In a custom module : xxxx.module : /** * Implements hook_toolbar(). */ function xxxx_toolbar() { $items = []; $items['Boutique'] = [ '#cache' => [ 'contexts' => ['user.permissions'], ], ]; if (!\Drupal::currentUser()->hasPermission('Access the Commande overview ...


1

Don't take any chances mymodule.module /* * Implements hook_toolbar_alter() */ function mymodule_toolbar_alter(&$items) { $items['administration']['#attached']['library'][] = 'mymodule/toolbar'; } mymodule.libraries.yml toolbar: version: VERSION css: theme: css/toolbar.css: {}


1

Yes, as Neo mentioned, the toolbar utilizes menu permissions so it only displays items available to the user. So if the user has permissions for Use the administration toolbar & View site reports (or whatever permission needed for a sub-item in the admin menu), they will see only the report menu items.


1

Answer according updated question: Use this function in template.php. /** * Implements hook_form_alter(). */ function THEMENAME_form_alter(&$form, &$form_state, $form_id) { global $user; $is_administrator = in_array('administrator', array_values($user->roles)); if($form_id == 'my_form_id'){ // if $user does NOT have the ...


1

I "fixed" it by completely reinstalling CKEditor as described on http://docs.cksource.com/CKEditor_for_Drupal/Open_Source/Drupal_7/Installation that worked just fine!


1

It was a bug in the admin menu module. I think it was fixed in the latest stable version (if not in stable, then in dev). Try updating to the latest stable version of admin menu (currently 7.x-3.0-rc5).


1

Sounds like an incomplete or partially failed install. Delete all the tables in the database and try doing a fresh install. Try performing the install with Drush so you can see in real time if there are any errors when writing to the database (look under "Quick installation with Drush"): https://www.drupal.org/documentation/install/developers Also make ...


1

I recommend you to disable Toolbar module and use Administration Menu Source with Administration menu and enable Admin Menu Toolbar which will give you the same look as Drupal Toolbar. Administration Menu Source: Use a different menu as the Administration Menu. Configurable per role. Custom Solution: Create a custom module add the following ...


1

There is the Masquerade module for seeing how a page looks like for another user https://drupal.org/project/masquerade. Another way is to duplicate your tab in incoqnito tab or in another browser and become another user there. Third way is to make sure (if possible) your browser remembers user names and passwords on login forms. Then logging in as ...


1

Select People or users in admin bar, the user section on the right side there is permissions tab click it. then scroll down to store section, there u can set the permission for each type of user in your site. Just to be clear user account ur are using as restricted go to his account page and see what type of user he is? ex admin or user or author. then ...


1

It's an incompatibility between administration toolbar and your theme, and maybe overlay if you are using it. No one placed it like that on purpose, it's just a clash between 3 sets of CSS each written without knowing how other will look. You can try one or many of the following: Use Administration menu instead of toolbar. Use Shiny as admin theme Toggle ...


1

You probably need to configure CKEditor for a specific input format. You might have an easier time if you install WYSIWYG module AND the ckeditor editor. This setup will integrate better with the Media module for instance. If you install WYSIWYG editor, you then can easily setup the editor per input format.


1

The buttons on the toolbar are automatically added when the module is enabled, as long as the menu items defined from the module with hook_menu() are sub-menus of the admin menu defined from the System module. The function that renders the toolbar is toolbar_view(), which contains the following code. // Retrieve the admin menu from the database. $links ...


Only top voted, non community-wiki answers of a minimum length are eligible