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. General Discussion
  3. Two different named menus on the same Position?

Two different named menus on the same Position?

Scheduled Pinned Locked Moved General Discussion
4 Posts 2 Posters 97 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.
  • F Offline
    F Offline
    finnrei
    wrote on last edited by finnrei
    #1

    Hi,

    I want to make a very simple website, which contains only two sites. The Startpage and an About page.

    The Startpage should only contain the Full Screen Slider + the Menu Point "About"

    When you click on "About" you should be directed to the About Page, where will be some text etc. – but: on the same position and in the same look as the "About" menu point on the Startpage there should be a "Start"-named menu point witch brings you back to the start page.

    So in the end I'm looking for a simple back and forth button with a different title.

    Any Idea what's the cleanest way to achieve this?

    Thanks in advance !

    Cheers

    1 Reply Last reply
    0
    • arminunruhA Offline
      arminunruhA Offline
      arminunruh
      Global Moderator
      wrote on last edited by
      #2

      hey!

      sure,

      in appearance -> menus
      make click "screen options" -> "css classes"

      Screenshot 2022-10-24 at 08.40.53.png

      give your menupoints the css classes:
      menupoint1
      and
      menupoint2

      like here:
      Screenshot 2022-10-24 at 08.42.26.png

      look at the title of your pages
      your frontpage's title might be "frontpage"
      Screenshot 2022-10-24 at 08.44.11.png

      based on this tutorial
      https://laytheme.com/documentation/custom-css-styling.html

      you can see we can target pages.
      your css to hide menupoint 2 when youre on the frontpage would be

      .slug-frontpage .menupoint2{
      display: none;
      }
      

      and to hide menupoint 1 when ure on the about page would be

      .slug-about .menupoint1{
      display: none;
      }
      

      if that doesnt work post the url here so i can take a look

      F 1 Reply Last reply
      0
      • arminunruhA arminunruh

        hey!

        sure,

        in appearance -> menus
        make click "screen options" -> "css classes"

        Screenshot 2022-10-24 at 08.40.53.png

        give your menupoints the css classes:
        menupoint1
        and
        menupoint2

        like here:
        Screenshot 2022-10-24 at 08.42.26.png

        look at the title of your pages
        your frontpage's title might be "frontpage"
        Screenshot 2022-10-24 at 08.44.11.png

        based on this tutorial
        https://laytheme.com/documentation/custom-css-styling.html

        you can see we can target pages.
        your css to hide menupoint 2 when youre on the frontpage would be

        .slug-frontpage .menupoint2{
        display: none;
        }
        

        and to hide menupoint 1 when ure on the about page would be

        .slug-about .menupoint1{
        display: none;
        }
        

        if that doesnt work post the url here so i can take a look

        F Offline
        F Offline
        finnrei
        wrote on last edited by
        #3

        @arminunruh

        Hey Armin, thanks for the speedy answer! I did it (I hope) exactly as you proposed it, but it won't work – both menus are still displayed and I'm not sure where the issue is. Maybe you can have a look:

        finnreimer.de

        Front page:
        http://finnreimer.de/start/

        About page:
        http://finnreimer.de/about/

        My CSS File – maybe just a mistake here?:

        Bildschirmfoto 2022-10-24 um 17.10.05.png image url)

        1 Reply Last reply
        0
        • arminunruhA Offline
          arminunruhA Offline
          arminunruh
          Global Moderator
          wrote on last edited by
          #4

          i see ure using two menus

          just do

          .slug-frontpage .primary{
          display: none!important;
          }
          
          .slug-about .second_menu{
          display: none!important;
          }
          
          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          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
          C
          chrisboender
          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.
          • First post
            Last post
          0
          • Recent
          • Tags
          • Popular
          • Users
          • Search