C
C
cosonicsq2020-06-21 16:57:46
Drupal
cosonicsq, 2020-06-21 16:57:46

How to change the name of the link "Home" in the header to "FRONT" or to "MAIN" or to another name that I need in Bootstrap theme?

At first I tried to change it in Structure/Menus/Main navigation but you can't change the name there. There you can only change the region in which the link is located and Weight.

Then I decided to try to change it in the twig template itself. Clicked the Check element in the browser . Since I have debugging mode enabled, it showed me that this element is located in templates/menu in the menu.html.twig file in the menu <ul>class menu--main nav navbar-nav . But I did not find any word Home and <ul>class menu menu--main nav navbar-nav .

Where can I find the word Home and the class menu menu--main nav navbar-navto manually change Home to FRONT or MAIN or whatever name I want?

PS I'm just starting to learn Drupal. Perhaps html tags in Drupal are not only in twig templates, but somewhere else? Maybe in some PHP files html markup is located?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question