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. back to home from any project should not go back to top at home

back to home from any project should not go back to top at home

Scheduled Pinned Locked Moved General Discussion
9 Posts 2 Posters 874 Views 1 Watching
  • 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.
  • A
    A
    Alex F
    wrote on last edited by
    #1

    hi there, i hope i can describe it well. my website: https://www.alex-fritsch-fotografie.de/ is a magazin style scrolling page with different projects. I would like that the website visitors go back to the point of the homepage when they click the "overview" button in the projects. at the moment they start at the top again and i think this could be a bad user experience. how can i solve this? thank you in advance

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

      sure

      really nice website by the way!!

      also since you have many many images on one page you will be happy with an update that will be released in the coming weeks that makes the gridder run much faster with many elements in it!

      now to your question:

      go to lay options → custom css & html, enter this in "custom <head> content":

      <script>
      jQuery(document).on("click", "a._MENU", function(e){
      e.preventDefault();
      e.stopPropagation();
      window.history.back();
      });
      </script>
      

      lmk if it worked

      A 1 Reply Last reply
      0
      • arminunruhA arminunruh

        sure

        really nice website by the way!!

        also since you have many many images on one page you will be happy with an update that will be released in the coming weeks that makes the gridder run much faster with many elements in it!

        now to your question:

        go to lay options → custom css & html, enter this in "custom <head> content":

        <script>
        jQuery(document).on("click", "a._MENU", function(e){
        e.preventDefault();
        e.stopPropagation();
        window.history.back();
        });
        </script>
        

        lmk if it worked

        A
        A
        Alex F
        wrote on last edited by
        #3

        @arminunruh Hey, thanky for the compliment to my site. appreciate that!

        unfortunatly the code dont work. the browser back button work but not the menu button i added to the projects

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

          you dont even have this code on your website

          A 1 Reply Last reply
          0
          • arminunruhA arminunruh

            you dont even have this code on your website

            A
            A
            Alex F
            wrote on last edited by
            #5

            @arminunruh true, i deleted it bc it was not working for me. I gonna add it now again.

            A 1 Reply Last reply
            0
            • A Alex F

              @arminunruh true, i deleted it bc it was not working for me. I gonna add it now again.

              A
              A
              Alex F
              wrote on last edited by
              #6

              @Alex-F fancy. it worked now. dunno what i did wrong. but many thanks for replying and helping again.

              1 Reply Last reply
              1
              • arminunruhA
                arminunruhA
                arminunruh
                Global Moderator
                wrote on last edited by
                #7

                very nice! :)

                A 1 Reply Last reply
                0
                • arminunruhA arminunruh

                  very nice! :)

                  A
                  A
                  Alex F
                  wrote on last edited by
                  #8

                  @arminunruh btw its not working again^^

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

                    hm not sure why! i need to work on other things, this is more of a custom code issue sorry

                    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
                    A
                    Anna_S
                    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