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

B

benjmaier

@benjmaier
About
Posts
3
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Design Portfolio Update
    B benjmaier

    https://benjaminmaier.it/portfolio

    Hello!

    I recently freshened up my online portfolio from scratch with laytheme.
    I would love to hear your opinions about it, especially technical or aesthetical feedback. In exchange I can offer my feedback of your website aswell.

    Thanks and happy holidays,
    Ben

    Showcase

  • Anchor link in mobile not working anymore
    B benjmaier

    Hello Richard, @Richard-K
    thanks for your answers. As Armin recommended I removed all the code, updated lay theme and then I put the code in again.
    Sadly it still will not work. Without the js-code the anchors work but without the scrolling.

    Furthermore only the menu bar works in my main mobile browser, which would be opera. On other browsers the site works but the scroll does not.

    Thanks

    Bug Reports

  • Anchor link in mobile not working anymore
    B benjmaier

    Hello!

    I couldn't find anything on this specific problem so I post here.
    I used the code for anchor scroll animations found on this website:

    <script>
        window.laytheme.on('newpageshown', function(){
           if(window.location.hash.length > 0){
               var id = window.location.hash;
               if(jQuery(id).length > 0){
                    jQuery('html, body').animate(
                    { scrollTop: jQuery(id).offset().top-70 },
                    { duration: 1200 });
               }
           } 
        });
    </script>
    

    In the beginning everything worked fine but after some time it stopped working for my mobile site and I could not explain why.

    My main page is a category page which links to a page with all projects. It should scroll to the clicked project right away with a link like this: [https://benjaminmaier.it/portfolio/works/#mzw](link url)

    I know there is a slash before the hashtag but it works for the desktop site. Tested on different mobile browsers and resized desktop browsers. The link just leads to the top of the page with all projects.

    Anyone knows a solution?
    Thanks and kind regards,
    Ben

    Bug Reports
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Recent
  • Tags
  • Popular
  • Users
  • Search