Fixing Page Jump Issues with Anchor Links in Page Builder by SiteOrigin
Content
Are your anchor links jumping to the wrong spot on the page? You click a menu link expecting to land neatly at a section heading, but instead, you're dropped halfway through the content. This is a common frustration for users of Page Builder by SiteOrigin, but the good news is that it's usually not the page builder's fault and is often easily fixable.
Why Does This Happen?
This jumping behavior, known as a scroll offset issue, is almost always caused by your website's theme. Many modern themes use a "sticky" header that remains fixed at the top of the screen as users scroll. While this is great for navigation, it means that when a browser jumps to an anchor link (like #my-section), the target heading appears directly at the top of the viewport, hidden underneath the sticky menu.
The browser is technically doing its job correctly; it's scrolling the anchor into view. The theme simply needs to be told to account for the space its sticky header occupies.
How to Fix Anchor Link Scroll Offset
Solution 1: Use a Dedicated Plugin (Recommended for Non-Developers)
The simplest way to resolve this is with a lightweight WordPress plugin that handles the offset automatically. The Hash Link Scroll Offset plugin is a popular and effective solution mentioned in Page Builder by SiteOrigin support threads. After installing and activating this plugin, it will automatically detect your sticky header's height and adjust the scroll position of all anchor links accordingly.
Solution 2: Add Custom CSS
If you prefer not to add another plugin, you can achieve the same result with custom CSS. You will need to know the height of your sticky header (e.g., 80px). Add the following code to Appearance > Customize > Additional CSS in your WordPress dashboard, replacing `80px` with your header's actual height.
html { scroll-padding-top: 80px; } /* Modern method */
:target { scroll-margin-top: 80px; } /* Modern method backup */
For broader browser support, you might need a more comprehensive CSS solution or a small amount of JavaScript, which is why the plugin is often the easier choice.
Solution 3: Check Your Anchor Setup
Before blaming the theme, double-check that your anchors are set up correctly. In your Page Builder row or widget, ensure you are using the correct HTML syntax.
- Create the Anchor: In your target heading, add a unique ID attribute. For example:
<h2 id="our-staff">Our Staff</h2> - Link to the Anchor: Create your link using the full page URL followed by the hash and the ID:
https://yourwebsite.com/your-page/#our-staff
Using the full URL path is the most reliable method, especially for links from one page to an anchor on another.
When Page Builder Might Be the Cause
In rare cases, certain widgets may filter out HTML attributes like `id` when saving content. If you find your custom `id` attributes are being stripped, try using a Custom HTML widget to insert your anchor. This widget is designed to preserve all raw HTML code.
By understanding that this is typically a theme styling issue and not a bug in Page Builder by SiteOrigin, you can quickly apply one of these solutions and get your page navigation working perfectly.
Related Support Threads Support
-
External Links Added Open In New Tab NOT WCAG Level A Complianthttps://wordpress.org/support/topic/external-links-added-open-in-new-tab-not-wcag-level-a-compliant/
-
Internal link to a headline / chapter headinghttps://wordpress.org/support/topic/internal-link-to-a-headline-chapter-heading/
-
Make a Cell in a Row Clickable to Link to a Pagehttps://wordpress.org/support/topic/make-a-cell-in-a-row-clickable-to-link-to-a-page/
-
Read more link out of blockhttps://wordpress.org/support/topic/read-more-link-out-of-block/
-
How to modify the email templateshttps://wordpress.org/support/topic/how-to-modify-the-email-templates/
-
Insert Non Breaking Space  https://wordpress.org/support/topic/insert-non-breaking-space-nbsp/
-
no breakshttps://wordpress.org/support/topic/no-breaks/
-
Tooltip for Button?https://wordpress.org/support/topic/tooltip-for-button/
-
Call to Action Problemhttps://wordpress.org/support/topic/call-to-action-problem/
-
spamhttps://wordpress.org/support/topic/spam-181/
-
“Read More’ link not workinghttps://wordpress.org/support/topic/read-more-link-not-working-13/
-
Siteorigin и sendpulsehttps://wordpress.org/support/topic/siteorigin-%d0%b8-sendpulse/
-
Link Code in HREFhttps://wordpress.org/support/topic/link-code-in-href/
-
Google Analytics Opt Out Link cannot be enteredhttps://wordpress.org/support/topic/google-analytics-opt-out-link-cannot-be-entered/
-
Automatically add title attribute to linkshttps://wordpress.org/support/topic/automatically-add-title-attribute-to-links/
-
Add-on ID applicationhttps://wordpress.org/support/topic/add-on-id-application/
-
How to create a PHP Include page?https://wordpress.org/support/topic/how-to-create-a-php-include-page/
-
How to create a blank page (or .css file /page) ?https://wordpress.org/support/topic/how-to-create-a-blank-page-or-css-file-page/
-
Table of contents from a pagehttps://wordpress.org/support/topic/table-of-contents-from-a-page/
-
Onlineactivationhttps://wordpress.org/support/topic/onlineactivation/
-
Postal code in contact formhttps://wordpress.org/support/topic/postal-code-in-contact-form/
-
Add javascript to button “click” event?https://wordpress.org/support/topic/add-javascript-to-button-click-event/
-
How do I close the button from indexing?https://wordpress.org/support/topic/how-do-i-close-the-button-from-indexing/
-
Links jump to farhttps://wordpress.org/support/topic/links-jump-to-far/
-
Is an internet connection necessary?https://wordpress.org/support/topic/is-an-internet-connection-necessary/
-
Website für Ukraine, mit Acceleratehttps://wordpress.org/support/topic/website-fur-ukraine-mit-accelerate/
-
Problems with the read more taghttps://wordpress.org/support/topic/problems-with-the-read-more-tag/
-
Site origin add automatically code in the source code?https://wordpress.org/support/topic/site-origin-add-automatically-code-in-the-source-code/
-
Page Jumps from main menuhttps://wordpress.org/support/topic/page-jumps-from-main-menu/