Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi, there are three issue:
1.Long site name or top menu not display complete if browser window smaller.
2.How to remove logo and site name :hover style?
i removed logo and site name :hover style by create my own page.tpl.php now.
2.how to put user menu to header?
when user not login, show button link to /user, when user login, show dropdown menu.
3. Notice: Undefined index: class in semanticui_preprocess_item_list() (line 12 of semanticui/preprocess/item_list.preprocess.inc).
Comments
Comment #2
dzy CreditAttribution: dzy commentedComment #3
dzy CreditAttribution: dzy commentedupdated issue information.
Comment #4
dzy CreditAttribution: dzy commentedComment #5
dzy CreditAttribution: dzy commentedI added dropdown menu to page.tpl.php, the menu html copy from semantic-ui.com still not working.
Comment #6
Kostya19 CreditAttribution: Kostya19 commented3. I did the commit supplementing the previous commit that caused the notice. Added checking the 'class' property in the item list preprocess.
Comment #7
Kostya19 CreditAttribution: Kostya19 commented2. You need to make menu, where an item is displayed depending on whether the user is authorized (override an item menu functions or search module for this) and set this menu as "Source for the Main links" in menu settings /admin/structure/menu/settings
To make dropdown menu read what I wrote here: https://www.drupal.org/node/2501409#comment-10452379
Comment #8
Kostya19 CreditAttribution: Kostya19 commented1. On mobile screens the header and the right top menu look bad. The menu should be move down left and the title text should be with line break.
To make the main top menu move down left on mobile screens, you need to make a custom layout, custom CSS with use media query.
To make the title text with line break you should set style property for this item:
flex: 0 1 auto;
Question: Should we do it in the base theme, or should do it in the subthemes?
Also you can use
stachable
class with any horizontal menu (http://semantic-ui.com/collections/menu.html#stackable)To add class to menu should to override
theme_menu_tree
in subtheme.