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. Site title in menu

Site title in menu

Scheduled Pinned Locked Moved General Discussion
10 Posts 2 Posters 615 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
    jvonc
    wrote on last edited by
    #1

    I’m building a site where the site title is on the topleft and behind it in the same line the menu is following.

    I’m looking for a solution to add the site title into the menu to prevent the weird changing gap between site title and menu. (Somehow the distance between the both is changing within different resolutions...)

    I already tried to ad a custom link to the menu but wasn’t able to change then afterwards the look and target of this one particular element via custom css/html.

    Is there maybe an easier way?

    This is how it should look like in the end – but here are the two elements still separated as Site Title and Menu:
    alt text

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

      Dear @jvonc
      can you post a link to your website?

      One idea would be to use CUSTOM CSS for this.

      Best!

      Marius

      www.mariusjopen.world

      1 Reply Last reply
      0
      • J Offline
        J Offline
        jvonc
        wrote on last edited by
        #3

        Hi @mariusjopen,

        you can find the website under: of.jonascarstens.com

        I tried some things in Custom CSS/HTML but didn’t came to a solution how to add the site title to the menu.

        Best
        j.

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

          Dear @jvonc

          does that help?

          .laynav.primary {
              left: 36vw;
              padding-top: 1px;
          }
          

          Best!

          Marius

          www.mariusjopen.world

          1 Reply Last reply
          0
          • J Offline
            J Offline
            jvonc
            wrote on last edited by
            #5

            Hi @mariusjopen,

            thanks for that – but unfortunately this doesn’t solve my problem.

            I want to embed the site title into the unit of the menu to have everything in a straight line.

            The closest I got so far was to add a custom link to the menu and name it like the site title. But I didn’t found a solution to change the look of that custom link.
            In this case I would get rid of the site title entirely.

            Best
            j.

            1 Reply Last reply
            0
            • mariusjopenM Offline
              mariusjopenM Offline
              mariusjopen
              Global Moderator
              wrote on last edited by
              #6

              @jvonc
              with the code I sent you - I got it in one line.

              Try to add !Important to the CSS.
              It should be doable in CSS:

              Best!

              Marius

              www.mariusjopen.world

              1 Reply Last reply
              0
              • J Offline
                J Offline
                jvonc
                wrote on last edited by
                #7

                @mariusjopen

                The only thing that happens when I put this code into the Custom CSS is that the menu gets a larger distance to the site title:

                alt text

                Of course I could change the distance in the code, but the "Space left" of the site title is set in % so that’ll change whenever the screen has a different resolution. So that wouldn’t really solve the problem besides on my own screen.

                What I want is to have the same distance between "Ossian Fraser" and "Works" as between every other menu element. In the customizer it’s only possible to set the distance the the edge of the website – is it maybe somehow possible to set this as a relation to the site title?

                Best
                j.

                1 Reply Last reply
                0
                • mariusjopenM Offline
                  mariusjopenM Offline
                  mariusjopen
                  Global Moderator
                  wrote on last edited by
                  #8

                  Dear @jvonc

                  this is responsive:

                  .laynav.primary {
                      left: 36vw;
                      padding-top: 1px;
                  }
                  

                  this would be exact pixels:

                  .laynav.primary {
                      left: 100px;
                      padding-top: 1px;
                  }
                  

                  You can adjust it like you want.
                  And then with media queries you could adjust it for mobile.
                  I would do that.

                  Best!

                  Marius

                  www.mariusjopen.world

                  1 Reply Last reply
                  0
                  • J Offline
                    J Offline
                    jvonc
                    wrote on last edited by
                    #9

                    Hi @mariusjopen

                    I finally figured out how I solve my problem. Your code was helping indeed:

                    .laynav.primary {
                        left: calc(5vw + 140px);
                        padding-top: 1px;
                    }
                    

                    With that workaround I make sure that the distance to the site title is always the same.

                    Best
                    jonas.

                    1 Reply Last reply
                    0
                    • mariusjopenM Offline
                      mariusjopenM Offline
                      mariusjopen
                      Global Moderator
                      wrote on last edited by
                      #10

                      Dear @jvonc
                      ha! The good old calc :-)

                      Best!

                      Marius

                      www.mariusjopen.world

                      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
                      H
                      heythere
                      A
                      alasdair17
                      arminunruhA
                      arminunruh
                      W
                      wyssseb
                      I
                      Ingi
                      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