Lay Theme Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Search

    Active menu on different project pages

    General Discussion
    3
    6
    162
    Loading More Posts
    • 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
      marc22 last edited by

      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 Reply Quote 0
      • mariusjopen
        mariusjopen Global Moderator last edited by

        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 Reply Quote 0
        • edgrbnz
          edgrbnz last edited by edgrbnz

          🤔

          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 Reply Quote 0
          • mariusjopen
            mariusjopen Global Moderator last edited by

            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 Reply Quote 0
            • M
              marc22 last edited by

              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 Reply Quote 0
              • mariusjopen
                mariusjopen Global Moderator last edited by

                Dear @marc22
                ah great! That simple!

                Perfect!

                Best!

                Marius

                www.mariusjopen.world

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                Post a link to where the problem is
                I don't answer or check forum DMs, please just post on the forum.
                Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com

                Before you post:

                Use the Search Feature. Maybe there is already a solution to your issue.

                1. Update Lay Theme and all Lay Theme Addons
                2. Disable all Plugins
                3. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code ", click "Save Changes"
                4. Now see if your problem solved itself
                5. Go here, see if your problem is listed here:
                Troubleshooting

                When you post:
                1. Post a link to where the problem is
                2. If the problem is difficult to explain, post screenshots / link to a video to explain it

                Thanks!

                Online Users

                C
                K

                Recent Topics

                • L

                  HTML

                • M

                  Burger menu in desktop and tablet view

                • M

                  WPForms Lite not working with new theme update (5.5.5)

                • K

                  remove licence from old site

                laytheme.com