Style field menu

Veronika's picture
Veronika
Wed, 02/13/2019 - 12:04
#1
Style field menu

Good day! Please tell me how to add a style field to the created menu in another language? By default, this is not in the template ..https://prnt.sc/mkapb5

Sincerely, Veronika.

cindy's picture
cindy
Wed, 02/13/2019 - 21:51

Please explain more in detail

We are not very clear what you want to add?

Veronika's picture
Veronika
Thu, 02/14/2019 - 06:05

Tell me please, you did not go to my site? I have stopped showing the menu and in general many modules are broken? Could it be because I deleted English, as you said?

Veronika's picture
Veronika
Thu, 02/14/2019 - 06:30

Trouble I have something wrong with the site! I personally, except to create a new menu in the Ukrainian language did not do anything. I deleted English, as you said, and the whole site went bad ..

Help me please!

Veronika's picture
Veronika
Thu, 02/14/2019 - 11:00

For some reason, the language has become a percentage

https://prnt.sc/ml40k5

The horror of what is happening with the site ..: ((

Veronika's picture
Veronika
Thu, 02/14/2019 - 11:24

I added English now and almost everything was in place. https://prnt.sc/ml4d3r

Now the problem remains again -https://prnt.sc/mjiljl

These actions have failed - https://prnt.sc/mjilwo

cindy's picture
cindy
Thu, 02/14/2019 - 21:22

Hello

You post many comment but what is your problem?

We are really confused

Veronika's picture
Veronika
Fri, 02/15/2019 - 03:46

Good day!

My problem is that I can’t remove English from the language bar. About this, I sent a screen. You told me to remove English. When I deleted it, a lot of things stopped working on the site. I asked you for help because I could not understand the cause of the breakdown. But I need to work on the site and I installed English again. Everything worked right away. However, English has reappeared in the language panel, but I don’t need it here, because it’s not used on the site. How to remove it from the language panel?

Veronika's picture
Veronika
Fri, 02/15/2019 - 03:47

Sorry, but I did not send 3 times now the message, this is something in the system happened .. I sent 1 time only.

Veronika's picture
Veronika
Fri, 02/15/2019 - 04:01

I also asked you about how I can create a style field in the new Ukrainian menu?

In the template of the main menu you have this button by default, and when you create the Ukrainian menu there is no such button. How to add this button?

https://prnt.sc/mkapb5

cindy's picture
cindy
Mon, 02/18/2019 - 02:56

Hello,

1. To remove English: Open file main.css (/themes/md_megatron/css/front/main.css) and add the following code at the bottom

.block-language li.en { display: none }

save the fila and clear drupal cache

2. Menu: You have to translate menu and add Ukrainian

If you create new menu, you have to add code to have that style option. This is an extra customization, you it will be charged if you want us to solve it for you. 

Veronika's picture
Veronika
Mon, 02/18/2019 - 05:15

Thanks a lot! Excuse me for asking for help so often. This is my first site on drupal. I used to do it only in Jumla.) Thank you again!

Veronika's picture
Veronika
Mon, 02/18/2019 - 05:20

When sending a message here on the forum there is such - https://prnt.sc/mmlqo0

Therefore, several messages are sent at once.

Veronika's picture
Veronika
Mon, 02/18/2019 - 09:37

Excuse me, please. Can I still ask you? I added a style for the Ukrainian menu, but for some reason the style selection button is not displayed in the Ukrainian menu?

https://prnt.sc/mmpvln

https://prnt.sc/mmpw16

cindy's picture
cindy
Mon, 02/18/2019 - 21:18

You add code for your Ukrainian menu in another function If

So, you can add Ukrainian into function if. Ghrome browser supports auto translation, you can make use of this feature

Veronika's picture
Veronika
Thu, 02/21/2019 - 06:22

Good day! I already finish making the site and I have one problem left that I cannot solve on my own. When creating a multi-language site, the top panel (fixed) is not displayed for the Ukrainian menu.

I entered this block, but there is nothing there .. https://prnt.sc/mo3uzr, https://prnt.sc/mo3uzr

How do I create this panel? https://prnt.sc/mo3svb

Tell me please.

P.S. Sorry, but I can not create a new topic, there is an error on your forum.

cindy's picture
cindy
Thu, 02/21/2019 - 22:01

Hello

In block, just insert page url you want to display/ not display like this
https://1drv.ms/u/s!ArRPkgVQNPYZhFyGNU_RPQEVCo68

Veronika's picture
Veronika
Fri, 02/22/2019 - 15:12

Thank you, but this does not apply to this unit. You have programmed Main Fixed Nav block for one language. And how can I make it for the Ukrainian language? Tell me, please, what code should I enter for the block of the fixed menu and which block? I'll do everything myself, just tell me where to write it.

/ modules / custom / md_nav / nav_fixed / src / Plugin / Block / or / modules / custom / md_nav / nav_fixed /?

cindy's picture
cindy
Sun, 02/24/2019 - 21:46

Hello,

nav_fixed module creates only 1 block menu Nav Fixed in block regions, not creating new menu. 

If you want to create a new Ukrainian menu, we already give you instruction above

Veronika's picture
Veronika
Mon, 02/25/2019 - 04:20

Good day! Yes, I want to create a Ukrainian fixed menu. Tell me, please, what and in what file to enter. I will do everything on my own. Thank!

cindy's picture
cindy
Tue, 02/26/2019 - 21:27

Hello

You can check the fixed header in block custom 

Just check and imitate it

Log in or register to post comments
Have More Idea?

We are here to build your website!

No Universal solution fits all special business requirements. Our experienced team is ready with ideas and state-of-the-art technical solutions to consult the best solution within your budget.