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. 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 198 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.
  • A Offline
    A Offline
    Alex F
    wrote on May 20, 2023, 12:48 PM 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
    • A Offline
      A Offline
      arminunruh
      Global Moderator
      wrote on May 20, 2023, 4:03 PM 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 May 20, 2023, 4:53 PM
      0
      • A arminunruh
        May 20, 2023, 4:03 PM

        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 Offline
        A Offline
        Alex F
        wrote on May 20, 2023, 4:53 PM 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
        • A Offline
          A Offline
          arminunruh
          Global Moderator
          wrote on May 30, 2023, 6:15 PM last edited by
          #4

          you dont even have this code on your website

          A 1 Reply Last reply May 31, 2023, 8:50 AM
          0
          • A arminunruh
            May 30, 2023, 6:15 PM

            you dont even have this code on your website

            A Offline
            A Offline
            Alex F
            wrote on May 31, 2023, 8:50 AM 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 May 31, 2023, 9:11 AM
            0
            • A Alex F
              May 31, 2023, 8:50 AM

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

              A Offline
              A Offline
              Alex F
              wrote on May 31, 2023, 9:11 AM 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
              • A Offline
                A Offline
                arminunruh
                Global Moderator
                wrote on Jun 4, 2023, 1:21 PM last edited by
                #7

                very nice! :)

                A 1 Reply Last reply Jun 5, 2023, 1:25 PM
                0
                • A arminunruh
                  Jun 4, 2023, 1:21 PM

                  very nice! :)

                  A Offline
                  A Offline
                  Alex F
                  wrote on Jun 5, 2023, 1:25 PM last edited by
                  #8

                  @arminunruh btw its not working again^^

                  1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    arminunruh
                    Global Moderator
                    wrote on Jun 9, 2023, 6:33 PM 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
                    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
                    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