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.
Is there a way to force the main menu to align from the left? Even if I turned off "Site branding", the menu does not align to the left, its more towards the middle. If I add a site branding block, the menu starts from the right justified section. Thanks for any tips.
Robert
Comments
Comment #2
leopathu CreditAttribution: leopathu as a volunteer and commentedJust add the css code in any css file,
Or, edit the following line in the theme/integrity/templates/menu--main.html.twig file, line no : 13
remove " pull-right " class and add " pull-left " class in the elements.
Comment #3
rcraig114 CreditAttribution: rcraig114 commentedWell, I added the code in both sections you mentioned and it had no effect. Do I need to refresh something on the backend?
Robert
Code added in layout.css
Code added in twig file
Comment #4
leopathu CreditAttribution: leopathu as a volunteer and commentedYes, you must clear drupal cache after changing this. :)
Comment #5
rcraig114 CreditAttribution: rcraig114 commentedYeah, did that as well, no effect. Anything else I'm missing? Do you want to see my entire config file for those two files above?
Robert