Custom Font Submenu

Dear support-team,

i have installed a custom font (via font-face). Everything works fine except the submenu.

How can i force the theme to use the custom font also in the submenu?

Thanks in advance and best regards.

Ingo

Hello Ingo,

Thanks for asking. :slight_smile:

You need to add following CSS under X > Theme Options > CSS to change sub-menu font:

.x-navbar .desktop .x-nav > li > a, .x-navbar .desktop .sub-menu li > a, .x-navbar .mobile .x-nav li a {
    font-family: archiveregular !important;
}

If you would like to learn CSS, I am sharing few resources that you take a look to get started with CSS and an interesting tool that you can use to speed up the development process.

I recommend you to watch following video that will help you to get started with CSS.

https://www.youtube.com/watch?v=MFR4WXiLzpc

Sometimes it can get a bit difficult to find out the right selector to be able to write the required CSS codes. A handy tool that can help you in this is Google Chrome dev tools. I am sharing the resource that you can refer to get started with dev tools.

https://developers.google.com/web/tools/chrome-devtools/css/

https://developers.google.com/web/tools/chrome-devtools/

https://www.youtube.com/watch?v=tP_kXBJWPhQ&t=200s

Thanks.

Perfect!

Thank you for the code and the videos.

Best regards.

Ingo

1 Like