I am trying to separate a vertical menu in the Theme Editor so that I can have colors different from the main menu. I have found some information on how to do this, but the first step is to create a new CSS Class for the block. I have no idea how to do that. I can't seem to find any specific instruction.
I have been able to add a custom field to the Theme Editor, but I haven't found info on how to link that to the new menu, and I think there is more to that since the field doesn't have the right name.
I assume you mean the block made in block manager and placed into the layout (versus in a file somewhere). I was thinking it had to be more complicated than that. I did do that, nothing changed. How do I link it to the new custom field in the Theme Editor?
In the User-defined CSS-class field of my block I wrote design_menu. In design/themes/my-themes/schema.json I added under the colors section:
One more questions for you. I have been able to change just about any color I want now, but I have one problem I can't figure out. I want to set the hover color on the vertical menu main items. I have been trying to adapt the coding from the main menu, but it isn't working out. Adding a modified version of the code gets me my hover changes, but it bleeds into the submenu. The submenu hover setting work fine, just the normal background and text color seem to be affected.
Without the added code, the hover color is tied to the main menu background. I haven't been able to find out why. It doesn't seem to be specified anywhere. In this case, the settings I have for the submenu work fine.
I would like to be able to change just the hover color on the vertical main menu items. Right now that means either figure out how to separate it from the main horizontal menu background (I have no idea why they are linked), or figure out why the code I adjusted/added is affecting the submenu too. The horizontal menu has just the hover. I tried to copy that code and alter it for the vertical menu. That is how I got the hover to work as a separate color, but clearly I didn't get something right. The submenu has a separate background color already that works until the hover code is added.