Title: Anchor Links Causing Scroll
Last modified: August 30, 2016

---

# Anchor Links Causing Scroll

 *  [GabrielDesign](https://wordpress.org/support/users/gabrieldesign/)
 * (@gabrieldesign)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/anchor-links-causing-scroll/)
 * Hi there, I am developing a travel website where this excellent plug in is being
   used to great advantage on many pages. However I have today encountered something
   strange which I would like to fix.
 * I want to be able to use anchor links to open a page and open the appropriate
   tab at the same time. For example if there are four tabs I would to be able to
   have four links in to the page, each using an anchor tab (for example #golf #
   skiing #sailing #diving) and which ever link is clicked the tab is also open 
   when the page opens.
 * Now this kind of works, except that for some reason when the page opens it opens
   the tab and then scrolls down to the bottom of it. If you have a tab with a long
   content then the page scrolls down a long way and the options at the top (the
   other tabs) cannot be seen unless the user scrolls back up.
 * I have tried checking, and unchecking, the reload page option in the settings
   and neither affect this. It is infuriating so if anyone can help or has any ideas
   that would be fantastic!
 * Thanks in advance.
 * [https://wordpress.org/plugins/wordpress-post-tabs/](https://wordpress.org/plugins/wordpress-post-tabs/)

Viewing 10 replies - 1 through 10 (of 10 total)

 *  [sukhada](https://wordpress.org/support/users/sukhada/)
 * (@sukhada)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/anchor-links-causing-scroll/#post-6225275)
 * Hi [@gabrieldesign](https://wordpress.org/support/users/gabrieldesign/),
 * Can you please provide us the URL of page where the tabs are embedded, so that
   I can also take a look into the scenario and try to fix it.
 * Waiting for your response.
    Thank you for all your patience.
 * Best Regards,
    Sukhada, SliderVilla Support Team.
 *  Thread Starter [GabrielDesign](https://wordpress.org/support/users/gabrieldesign/)
 * (@gabrieldesign)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/anchor-links-causing-scroll/#post-6225369)
 * Hi [@sukhada](https://wordpress.org/support/users/sukhada/)
 * Many thanks for your reply, and apologies for the slowness in getting back to
   you, I have been out of the country.
 * One page where I am using your great plug in is:
 * [http://1078174551.n646418.test.prositehosting.co.uk/test-new-hotel/](http://1078174551.n646418.test.prositehosting.co.uk/test-new-hotel/)
 * As you can see it is brilliant for a website like the one I am developing for
   my client.
 * However, if I wanted to link to the page above, and for example, open the Accommodation
   tab at the same time I would use this link:
 * [http://1078174551.n646418.test.prositehosting.co.uk/test-new-hotel/#Accommodation](http://1078174551.n646418.test.prositehosting.co.uk/test-new-hotel/#Accommodation)
 * The anchor tag works to open the tab but then scrolls down the page to the bottom
   of the content rather than showing all the tabs at the top of the section.
 * Can you please advise me as to what I am doing wrong, or how to adjust the plug
   in to achieve this?
 * Looking forward to hearing from you,
 * Many thanks
 * Pete
 *  [sukhada](https://wordpress.org/support/users/sukhada/)
 * (@sukhada)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/anchor-links-causing-scroll/#post-6225375)
 * Hi [@gabrieldesign](https://wordpress.org/support/users/gabrieldesign/),
 * Thank you for your response.
 * Currently it is working as per browser functionality and scrolling to the content
   div ID. This feature is currently not available in free tabs plugin, we are going
   to add this feature in next update. We will get back to you once released the
   update.
 * Thank you for all your patience.
 * Best Regards,
    Sukhada, TabberVilla Support Team.
 *  Thread Starter [GabrielDesign](https://wordpress.org/support/users/gabrieldesign/)
 * (@gabrieldesign)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/anchor-links-causing-scroll/#post-6225376)
 * Hi [@sukhada](https://wordpress.org/support/users/sukhada/)
 * Thank you for your quick reply. However I am a little confused as it is not working
   as you suggest. The page and tab open but it does not scroll to the content div
   ID, it scrolls down further to the bottom of the DIV and does not stop at the
   top where the anchor tab, DIV header is. It seems to speed past the DIV ID and
   carry on down to the closing div tag, not the opening one. Can you advise me 
   please?
 * Many thanks again
 * Pete Batchelor
 *  [sukhada](https://wordpress.org/support/users/sukhada/)
 * (@sukhada)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/anchor-links-causing-scroll/#post-6225377)
 * Hi [@gabrieldesign](https://wordpress.org/support/users/gabrieldesign/),
 * I have Tested the link on Google Chrome and Mozilla Firefox and once one the 
   link for “Accommodation” tab it is scrolling to content with text “offers great
   views over the Arabian Gulf or Palm Jumeirah…….”
    As you are having one fixed
   menu the first link was cut, but it’s not scroll at the bottom of content, can
   you please provide us the browser you are using or any screenshot of the scenario.
   So that We can try to fix it.
 * Waiting for your response.
    Thank you for all your patience.
 * Best Regards,
    Sukhada, TabberVilla Support Team.
 *  Thread Starter [GabrielDesign](https://wordpress.org/support/users/gabrieldesign/)
 * (@gabrieldesign)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/anchor-links-causing-scroll/#post-6225380)
 * Hi Sukhaha,
 * Many thanks for your support on this. I have tested in Firefox, IE and Chrome
   and get the same issue in each. When the page opens you just can’t see the tabs
   at the top. As suggested I have taken some screen shots.
 * The first one is what I get when I use the link to #Accommodation which I first
   sent to you.
 * [Screenshot01](http://gabrieldesign.co.uk/testzone/screenshot01.jpg)
 * This second one is what should happen with the anchor in the tab.
 * [Screenshot02](http://gabrieldesign.co.uk/testzone/screenshot02.jpg)
 * To make it clearer I have added some dummy text, making the tab content long,
   which shows how the page scrolls down and doesn’t stay at the top when opened
   via an anchor.
 * [Screenshot03](http://gabrieldesign.co.uk/testzone/screenshot03.jpg)
 * As you can see the content starts half way down and not at the top of the page.
   Obviously it is more useful to have the start of the text, or preferably the 
   tab itself as the starting point, not the middle of the content like this.
 * I hope that this is clear and thank you again for all your help on this.
 * Many thanks
 * Pete Batchelor
 *  [sukhada](https://wordpress.org/support/users/sukhada/)
 * (@sukhada)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/anchor-links-causing-scroll/#post-6225382)
 * Hi [@gabrieldesign](https://wordpress.org/support/users/gabrieldesign/),
 * Your site is having fixed top menu, due to which the first line of tab content
   was getting cut and in current version of free tabs its not scroll to tab title
   top, we will ad this in upcoming update. If possible can you please provide us
   the temporary admin access details to our support mail **support[dot]team[at]
   tabbervilla[dot]com**, so that I will customize the plugin as per your requirement.
 * Waiting for your response.
    Thank you for all your patience.
 * Best Regards,
    Sukhada, TabberVilla Support Team.
 *  Thread Starter [GabrielDesign](https://wordpress.org/support/users/gabrieldesign/)
 * (@gabrieldesign)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/anchor-links-causing-scroll/#post-6225390)
 * Hi [@sukhada](https://wordpress.org/support/users/sukhada/),
 * Many thanks for your reply. I have just set you up access and e-mailed you.
 * Thank you for all your support.
 * Many thanks again
 * Pete Batchelor
 *  [sukhada](https://wordpress.org/support/users/sukhada/)
 * (@sukhada)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/anchor-links-causing-scroll/#post-6225394)
 * Hi [@gabrieldesign](https://wordpress.org/support/users/gabrieldesign/),
 * I have not yet received access details to your dashboard, can you please resend
   the access details.
 * Waiting for your response.
    Thank you for all your patience.
 * Best Regards,
    Sukhada, TabberVilla Support Team.
 *  Thread Starter [GabrielDesign](https://wordpress.org/support/users/gabrieldesign/)
 * (@gabrieldesign)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/anchor-links-causing-scroll/#post-6225395)
 * Hi @sukhaha
 * That is odd. I set it up for you last Thursday. It was 16.54 UK time. The e-mail
   would have been from
    _[moderated]_ Many thanks for all your help.
 * Kind regards
    Pete Batchelor

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Anchor Links Causing Scroll’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wordpress-post-tabs_ffffff.svg)
 * [WordPress Post Tabs](https://wordpress.org/plugins/wordpress-post-tabs/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-post-tabs/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-post-tabs/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-post-tabs/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-post-tabs/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-post-tabs/reviews/)

## Tags

 * [anchor tags](https://wordpress.org/support/topic-tag/anchor-tags/)
 * [links](https://wordpress.org/support/topic-tag/links/)
 * [scrolling](https://wordpress.org/support/topic-tag/scrolling/)

 * 10 replies
 * 2 participants
 * Last reply from: [GabrielDesign](https://wordpress.org/support/users/gabrieldesign/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/anchor-links-causing-scroll/#post-6225395)
 * Status: not resolved