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. custom header item

custom header item

Scheduled Pinned Locked Moved Need Custom Coding for Lay Theme? Find 3rd Party Developers here.
4 Posts 2 Posters 479 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.
  • E Offline
    E Offline
    emresenoglu
    wrote on last edited by emresenoglu
    #1

    hey all - im guessing what im trying to do is fairly simple but after having spent hours on it i'm ready to ask for help :)

    im simply trying to add a 'Projects' text/button/clickable link to the top of my website. This should be a link to the projects page, it should be seen as active element (darker color) when on that page. It should also be hidden on the individual project pages however I was able to achieve this by css. It should have the exact same font / size as the site title and the corner menu.

    here's the website as it is now: www.senoglu.co

    you will notice that i've already achieved the major part of this by adding custom html, but on chrome the font size seems to change between pages, and i can't get the active page styling to work.

    the css:
    Screenshot 2025-08-01 at 16.45.38.png

    and the html:
    Screenshot 2025-08-01 at 16.46.15.png

    happy to pay if you are able to achieve exactly this!

    senoglu.co

    1 Reply Last reply
    0
    • E Offline
      E Offline
      emresenoglu
      wrote on last edited by
      #2

      nevermind, silly me i used the wrong hex code :) problem solved!

      senoglu.co

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

        Ah, nice. When you look at the HTML code of a Lay Theme website, you see that anchors typically have certain data attributes. This allows for the smooth transition between pages when you click on this anchor.

        image.png

        You can see the HTML code of your website when you right-click on a link (for example) and then click "Inspect element" in Chrome.

        The idea of a page you can find out when you edit the page in WP-Admin.
        The ID is part of the URL.

        image.png

        So you could add the correct data-id, data-type, and data-title attributes to your custom anchor, and that will make your website not do a hard reload when you click that anchor.

        1 Reply Last reply
        1
        • E Offline
          E Offline
          emresenoglu
          wrote on last edited by
          #4

          very helpful, thanks a lot armin. i'm looking forward to seeing what else i can tweak on my page.

          senoglu.co

          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
          arminunruhA
          arminunruh
          A
          alasdair17
          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