Link to a Section in Hostinger AI Builder Manual Mode
In this article
Linking to a specific section within your Hostinger AI Builder website (in manual mode) lets you send visitors straight to a particular part of a page—like a pricing table, FAQ, or contact form—instead of making them scroll. This guide walks you through creating anchor links, both within the same page and from other pages, using the manual editor.
What You'll Need
- Access to your Hostinger hPanel and the website built with AI Builder (manual mode).
- The page where you want to add the link and the page or section you want to link to.
- Basic familiarity with the AI Builder editor (adding text, images, buttons).
Step-by-Step
- Open the target page in the AI Builder editor. Log in to hPanel, go to Websites, click Manage next to your site, and then click Edit Website to launch the AI Builder. Make sure you're in Manual Mode (not AI mode).
- Identify the section you want to link to. Scroll to that section (e.g., a "Contact Us" heading, a pricing table, a specific FAQ question). Click on the section to select it. You'll see a blue outline or a toolbar appear.
- Find the section's ID. In the right-side settings panel (or the element toolbar), look for an "Advanced" or "Settings" tab. There should be a field labeled "Section ID" or "CSS ID." If it's empty, type a short, unique identifier like
contactorfaq-3. Avoid spaces and special characters—use hyphens instead. If the field already has a value (like a generated ID), note it down. Click outside to save. - Copy the section's URL (optional but helpful). To get the full URL, preview the page in a new tab. The URL will look like
yoursite.com/page#contact. You can copy this directly, but you can also just use the relative path (e.g.,#contact). - Go to the page where you want the link to appear. Open that page in the AI Builder editor. This could be the same page or a different one.
- Add a link to a text, button, or image. Select the element you want to make clickable. In the toolbar, click the link icon (usually a chain link). A popup will appear.
- Enter the link URL. In the URL field, type the anchor:
- Same page: Just the hash and the ID, e.g.,
#contact. - Different page on your site: The page path plus the hash, e.g.,
/about#teamorhttps://yoursite.com/about#team.
- Same page: Just the hash and the ID, e.g.,
- Apply and save. Click Apply or Insert, then click Save (top right) and Publish to make the change live.
Common Mistakes
- Using spaces or uppercase in the ID. IDs must be lowercase, with hyphens for spaces.
Contact Uswill break; usecontact-us. - Linking to a section that has no ID. If you don't set an ID, the link won't work. Always assign an ID in the section settings.
- Using the wrong URL format. For a different page, you need the full path or absolute URL, not just
#id. For the same page,#idis correct. - Forgetting to publish. Changes in the editor don't appear on the live site until you click Publish.
Tips
- Use descriptive IDs. Name them after the content (e.g.,
pricing,faq) so they're easy to remember and reuse. - Test on mobile. Anchor links work on mobile, but ensure the section is visible and not hidden behind a fixed header—you may need to add scroll-margin-top in custom CSS to prevent the heading from being covered.
- Link from menus. You can also add anchor links to your navigation menu items, but be careful—some menu systems require the full URL.
- Use anchor links for long pages. They greatly improve user experience on FAQ pages, long articles, or one-page sites.
Troubleshooting
The link does nothing when clicked. First, check that the target section has an ID set. In the editor, click the section and look for the ID field. If it's empty, add one. Then verify the link URL: for same-page, it should be just #id. For different pages, make sure the path is correct. Also, clear your browser cache and test again.
The link jumps but the heading is hidden under the header. This happens when a fixed header overlaps the section. Add a bit of CSS to your site: in the AI Builder, go to Settings → Custom CSS, and add .section { scroll-margin-top: 80px; } (adjust the pixel value to match your header height).
The link works on the preview but not on the live site. You likely forgot to publish. Click Publish in the top right corner. Also, if you changed the page URL, the old anchor may not work—update the link.
Can't find the ID field. In some AI Builder versions, the field is under the "Advanced" tab in the right panel. If you still can't find it, try clicking directly on the section's edge until the toolbar appears, then look for a gear icon. Alternatively, you can add a custom HTML block and manually add an id attribute to a div, but that's more advanced.
Frequently Asked Questions
Can I link to a section on a page that is not published yet?
Yes, but the link will only work after both pages are published. Until then, the target page will return a 404.
Do I need to use the full URL or can I use just the hash?
For same-page links, just the hash (e.g., #faq) is enough. For different pages, use the relative path (e.g., /faq#faq) or the full URL (e.g., https://yoursite.com/faq#faq).
Will anchor links work if I change the page slug later?
If you change the page slug (URL), any links pointing to that page with the old slug will break. You'll need to update them. The anchor part (#id) will still work as long as the section ID remains the same.
Can I link to a section in a different website?
Yes, you can link to any URL with an anchor, e.g., https://othersite.com/page#section, but the target site must have that section ID defined for it to work.
Why does my link scroll to the top instead of the section?
This usually means the target section ID doesn't exist or the link URL is malformed. Double-check the ID spelling (case-sensitive) and that you've included the # symbol.
Can I use numbers in the section ID?
Yes, but the ID must start with a letter. For example, section-1 is valid, but 1section is not.