Title: Page Anchors
Last modified: August 20, 2016

---

# Page Anchors

 *  [Josh](https://wordpress.org/support/users/josh401/)
 * (@josh401)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/page-anchors/)
 * Hi,
 * After successfully inserting a page anchor, when clicking the anchor, the redirect
   is showing the anchor text just above the top of the screen.
 * For example, if I link to a header text titled “Link Here”; when I’m taken to
   the page, the title is just off the top of the screen. I would prefer the title
   to be visible when linking.
 * Is there a custom function to add some top padding or margin to a link containing
   an anchor to make the redirect page “shift” upwards about 20 pixels?
 * Thanks for any help.

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

 *  [Pioneer Web Design](https://wordpress.org/support/users/swansonphotos/)
 * (@swansonphotos)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/page-anchors/#post-2567140)
 * I think it would be related to the template file associated with the page or 
   some code in the page that varies from the others.
 *  Thread Starter [Josh](https://wordpress.org/support/users/josh401/)
 * (@josh401)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/page-anchors/#post-2567194)
 * Well, I use it in one of my plugins… and it has the same effect for everyone 
   who is using it.
 * I was hoping there was a “hook” or something I could hook into from a plugin 
   file.
 * I think this is somewhat similar to the “read more” buttons. By default, when
   you click the button, it takes you to JUST below the content where you inserted
   the button.
 * I’ve used a function which changes this to linking you to the top of the page.
 * I was hoping there was something similar for use with anchors??
 *  [Pioneer Web Design](https://wordpress.org/support/users/swansonphotos/)
 * (@swansonphotos)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/page-anchors/#post-2567248)
 * Yah, I noticed that also that the default read more in wp 3.3.1 has no ‘room’
   above….ask WP folks, they wrote it…
 *  Thread Starter [Josh](https://wordpress.org/support/users/josh401/)
 * (@josh401)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/page-anchors/#post-2567255)
 * How would I go about doing that?
 *  Thread Starter [Josh](https://wordpress.org/support/users/josh401/)
 * (@josh401)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/page-anchors/#post-2567319)
 * I see ESMI is checking threads… Perhaps you have an idea??

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

The topic ‘Page Anchors’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 2 participants
 * Last reply from: [Josh](https://wordpress.org/support/users/josh401/)
 * Last activity: [14 years, 6 months ago](https://wordpress.org/support/topic/page-anchors/#post-2567319)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
