Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. Need Custom Coding for Lay Theme? Find 3rd Party Developers here.
  3. Submenu: change font

Submenu: change font

Scheduled Pinned Locked Moved Need Custom Coding for Lay Theme? Find 3rd Party Developers here.
5 Posts 3 Posters 499 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    joanaflcarneiro
    wrote on Jun 6, 2022, 4:48 PM last edited by
    #1

    Hey there,
    can I get some help to change the font of my submenu?

    I would like to have the font of the submenu items different from the main-menu and there isn't that option in the customize section. I would like to use the default font.

    Or anyone has a code to customize the font, size and colour of just the submenu style, without changing the main menu?

    Thanks
    xx

    1 Reply Last reply
    0
    • J Offline
      J Offline
      joanaflcarneiro
      wrote on Jun 6, 2022, 4:57 PM last edited by
      #2

      Here the website: http://adiegobraga.com/
      for now i'm just using the submenu at MUSIC to test

      1 Reply Last reply
      0
      • R Offline
        R Offline
        Richard
        Global Moderator
        wrote on Jun 6, 2022, 9:08 PM last edited by
        #3

        Dear @joanaflcarneiro

        The Submenu will take on the font or 'Text Format' you defined for its main menu. So if the Primary menu is "Times new roman" and the Primary menu has a Submenu - Then the Submenu will be 'Times new Roman".

        If needed, you could define the font family manually:

        .menu-item-has-children ul.sub-menu {
            font-family:sans-serif !important;
        }
        

        I would suggest making a Text format and then applying that to the CSS. Each text format will have an html class you can insert that into the code:

        Screen Shot 2022-06-07 at 9.06.37 AM.png

        .menu-item-has-children ul.sub-menu {
            font-family: _Default !important;
        }
        

        Best wishes 🌝
        Richard
        1 Reply Last reply
        0
        • J Offline
          J Offline
          joanaflcarneiro
          wrote on Jun 7, 2022, 1:41 PM last edited by
          #4

          Hey hey @Richard ,
          thanks so much for the help.
          Meanwhile I could make it work with this code:
          .sub-menu {
          font-family: Armag-FuryItalic;
          color: #ff3c23;
          line-height: 1.4;
          font-weight: 300;
          text-transform: none;
          font-style: normal;
          text-decoration: none;
          padding: 0;
          text-indent: 0em;
          border-bottom: none;
          text-align: left;
          }

          But it's not working for mobile. From what I understood from the inspector tool, the submenu on mobile has the same clase that the main menu, so this lines of code don't work. I've tried the one you said and doesn't work on the mobile either. Any tip for that?
          xx

          1 Reply Last reply
          0
          • A Offline
            A Offline
            arminunruh
            Global Moderator
            wrote on Jun 9, 2022, 3:25 PM last edited by
            #5

            maybe try to put !important behind

            like:
            font-family: Armag-FuryItalic!important;

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes

            1/5

            Jun 6, 2022, 4:48 PM


            I also code custom websites or custom Lay features.
            💿 Email me here: 💿
            info@laytheme.com

            Before you post:
            1. When using a WordPress Cache plugin, disable it or clear your cache.
            2. Update Lay Theme and all Lay Theme Addons
            3. Disable all Plugins
            4. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"

            This often solves issues you might run into

            When you post:
            1. Post a link to where the problem is
            2. Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
            3. If the problem is difficult to explain, post screenshots / link to a video to explain it
            Online Users
            S
            Stanlouche
            4 minutes ago
            reinterpretR
            reinterpret
            22 minutes ago
            Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
            laytheme.com
            • Login

            • Don't have an account? Register

            • Login or register to search.
            1 out of 5
            • First post
              1/5
              Last post
            0
            • Recent
            • Tags
            • Popular
            • Users
            • Search