Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • 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. Active menu on different project pages

Active menu on different project pages

Scheduled Pinned Locked Moved General Discussion
6 Posts 3 Posters 1.2k 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.
  • M
    M
    marc22
    wrote on last edited by
    #1

    Hi!

    My page has several project pages: one for graphic design, another for sculpture projects, etc. each one has several project thumbnails added one by one (not build as a thumbnail grid).

    When I acces any of the projects, there's any active class working on the menu, and I would like to have it active when you are seeing graphic design projects or any other kind with it's respective menu section highlighted (active).

    I was trying to figure out if I can catch the class of each projecto on the code to force the menu link that I want as active, but I can't figure out how I can do that.

    Do you know solution for making that?

    My page is: http://francescpolop.com/sculpture/

    Many thanks in advance :)

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

      Dear @marc22
      H ope this helps:
      http://laytheme.com/documentation.html#custom-css-styling

      You can assign different CSS rules for different pages.

      Best!

      Marius

      www.mariusjopen.world

      1 Reply Last reply
      0
      • edgrbnzE
        edgrbnzE
        edgrbnz
        wrote on last edited by edgrbnz
        #3

        🤔

        If the links in the sidebar would be category-pages instead of regular pages that would work anyway… wouldn’t it?

        ✦ ✦ ✦

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

          Dear @marc22
          yes. You could probably get it done somehow with jQuery and a lot of effort.

          How good are your coding skills?

          Best!

          Marius

          www.mariusjopen.world

          1 Reply Last reply
          0
          • M
            M
            marc22
            wrote on last edited by
            #5

            Hi @mariusjopen @edgrbnz

            Many thanks for your suggestions and help.
            I'm not advanced in programming but I can edit html and css without problems.

            I found a simple way to do that:
            Catch the category class of the on-screen project and change the colour of the desired menu item. Like that:

            .category-4 .menu-item-551 a {
            color: #ee1c25 !important;
            }

            From coding standpoint might not be perfect but worked for my needs.

            Best!
            Marc

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

              Dear @marc22
              ah great! That simple!

              Perfect!

              Best!

              Marius

              www.mariusjopen.world

              1 Reply Last reply
              0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              Online Users
              L
              lukas123
              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