Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Anchor links jumping past their links on mobile


ampddesigns

Question

Site URL: https://www.elizameadows.com/services

Hello! I've added anchor links to 3 sections on this page, which are also linked in the dropdown menu under "What I Offer."

 

On mobile, if a user clicks either the "Group Classes" or "Independent Study" links in the dropdown, it jumps past the anchor link to the middle of the content.

 

However, if the user is already on the page, and scrolls back up and selects one of the other options, it jumps to the correct spot.

 

Either way, this creates errors on mobile. Any suggestions for fixing?

Link to post
  • Answers 5
  • Created
  • Last Reply

Top Posters For This Question

5 answers to this question

Recommended Posts

  • 0

Hello,

I checked your website on my iPhone 11 and navigated using the anchor links with no problems. It took me to the top of the page I chose - "Group Classes - Virtual" was at the top of my mobile browser. Were you able to fix this?

 

Link to post
  • 0
On 3/16/2021 at 4:01 AM, ampddesigns said:

@Wolfsilon Interesting! No, unfortunately the client and I (and the client's mom lol) are still experiencing it.

Hi. Have you solved problem yet?

Link to post
  • 0

I checked your site using an ap the simulates various mobile views. Worked fine each time. I also checked it directly on my Android phone both horzontial and vertical view. The links worked perfectly. I do know that if views while signed in or from config mode, unusual things can happen.  I would like to suggest you add a back to top button or arrow to your site. There is a lot of scrolling to get to the menu, especially from mobile view. If you wish to have one you can see it working here: 

https://christinegregoryphotography.com/  choose captures and the button will be down on the right hand corner both mobile and desktop view. 

This is a very simple back to top button. Just add this code to your site footer in a code block: 

<p><a href="#top" class="t-top"><span class="arrow"></span>Top</a>
<style>
  /* Back to Top */  
.t-top {
    font-weight: 500;
    letter-spacing: 2px;
    font-size: 15px;
    text-transform: lowercase;
    text-align: center;
    line-height: 1.6;
    padding-left: 2px;
    padding-top: 4px;
    position: fixed;
    right: 25px;
    bottom: 60px;
    width: 40px;
    height: 40px;
    z-index: 999;
    background-color: transparent;
    color: #000;
  filter: drop-shadow(8px 8px 8px #666666)
}
.t-top .arrow:before {
      font-family: 'squarespace-ui-font';
    font-style: normal;
    font-weight: 300;
    font-size: 20px;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    content: "\e02d";
    text-align: center;
    display: block;
    vertical-align: middle;
    transform: rotate(-90deg);
    cursor: pointer;
    margin-left: -4px;
  filter: drop-shadow(8px 8px 8px #666666)
}
.t-top .arrow {display:inline;}
</style></p>

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...