The Scrollspy Navigation (Scrollspy) section creates a sticky navigation bar that helps visitors quickly jump to different parts of your page. As users scroll down, the navigation automatically highlights which section they're currently viewing. This section is perfect for:
- Long landing pages such as blog posts or pages with fragments
- Product pages with multiple sections
- About pages with different content areas
- Blog posts
- FAQ pages
💡 Note: This feature is available starting from Concept v5.1.0 .
How to add Scrollspy section to your page
Step 1: Add the section
-
Go to your Shopify admin
-
Navigate to Online Store > Themes
-
Click Edit theme on your theme
-
Open the page where you want to add scroll spy
-
Click Add section and select Scrollspy navigation
Step 2: Position the section
Once added, the Scrollspy section should be placed at the position you choose. However, it will stick to its position as users scroll down
Section settings
Display settings
-
Show active section highlight
-
Default: Enabled
-
What it does: Highlights the active navigation item as users scroll
-
Recommendation: Keep this enabled for better user experience
-
-
Desktop content alignment
-
Options: Left, Center, Right
-
Default: Left
-
What it does: Controls where the navigation items appear on desktop screens
-
-
Mobile content alignment
-
Options: Left, Center, Right
-
Default: Left
-
What it does: Controls where the navigation items appear on mobile devices
-
-
Make section full width
-
Default: Disabled
-
What it does:
- Disabled = Navigation stays within page content width
- Enabled = Navigation spans the full browser width
-
Use case: Enable if you want the navigation to stretch across the entire screen
-
Color settings
-
Text
-
What it does: Changes the color of navigation item text
-
Tip: Make sure there's good contrast with the background color
-
-
Background
-
What it does: Sets the background color of the navigation bar
-
Tip: Choose a color that stands out but doesn't distract
-
-
Background gradient
-
What it does: Adds a gradient effect to the background instead of a solid color
-
Note: If set, this will override the background color
-
Adding navigation items
The Scroll Spy section uses blocks to create navigation items. There are 2 types of blocks: Navigation item , and Back to top
Navigation item
This creates a clickable link that takes users to a specific section. Below are its settings:
-
Title
-
The text that appears in the navigation
-
Example: "Features", "Reviews", "Specifications"
-
-
Target section ID
-
What is this for?
- This field contains the ID(s) of the section(s) you want to track
- When a visitor scrolls into the area of these sections, this navigation item will automatically highlight
- Clicking this nav item will also smoothly scroll the page to the first target section
- This is how the Scrollspy knows which nav item should be active as users scroll down the page
-
Format
- Each section in Shopify has a unique ID
-
Format is usually:
`shopify-section-template--xxxxx__section-name` - You need to find and copy this ID from your page
-
Pro tip
You can target multiple sections with one nav item
- Separate multiple IDs with commas
-
Example:
template--123__section-1, template--123__section-2, template--123__section-3 - The nav item will highlight when ANY of these sections are in view
- Useful when you have related content split across multiple sections
-
Back to top
This adds a button with an up arrow that takes users back to the top of the page.
- No configuration needed
- Automatically displays an arrow icon
- Limit: You can only add ONE "Back to top" button/block per Scrollspy section
How to find section IDs?
Method 1: Using Google Chrome
-
Open your page in Chrome
- Go to your live website or preview your theme
- Navigate to the page where you added the sections
-
Open Developer Tools
-
Windows/Linux:
Press
F12ORCtrl + Shift + I -
Mac:
Press
Cmd + Option + I -
OR right-click anywhere on the page → Select " Inspect "
-
Windows/Linux:
Press
-
Activate the Element Selector
- Click the "Select an element" icon (looks like an arrow in a box)
- It's located in the top-left corner of the Developer Tools
-
OR press
Ctrl + Shift + C(Windows) /Cmd + Shift + C(Mac)
-
Hover over the section you want to target
- Move your mouse over the section on the page
- The section will be highlighted with a blue overlay
- You'll see the section's dimensions appear
-
Click on the section
- The HTML will automatically jump to some element belonging to the section in the inspector and it will be highlighted with a light blue background
-
Trace back upward for the first line that starts with
<div id="shopify-section-..." -
Example:
<div id="shopify-section-template--25840001483033__video-hero" class="shopify-section">
-
Copy the ID
-
The ID is everything after
id=" -
In the example above, the ID is:
shopify-section-template--25840001483033__video-hero. So you would copy:shopify-section-template--25840001483033__video-hero -
Simply double click on the ID to select it then press
Cmd + V(Mac) orCtrl + V(Windows) to copy it.
-
The ID is everything after
Method 2: Using Safari
First, enable Developer Tools (one-time setup):
- Open Safari
-
Go to
Safari
menu →
Preferences
(or press
Cmd + ,) - Click the Advanced tab
- Check the box: "Show Develop menu in menu bar"
- Close Preferences
Then, to inspect elements:
-
Open your page in Safari
- Go to your live website or preview your theme
- Navigate to the page where you added the sections
-
Open Web Inspector
-
Mac:
Press
Cmd + Option + I - OR right-click on the page → Select "Inspect Element"
- OR go to Develop menu → Show Web Inspector
-
Mac:
Press
-
Activate the Element Selector
- Click the target icon in the top-left of the inspector
- It looks like a crosshair or target symbol
-
OR press
Cmd + Shift + C
-
Hover over the section you want to target
- Move your mouse over the section on the page
- The section will be highlighted with a colored overlay
- You'll see a tooltip with element information
-
Click on the section
- The Elements/DOM tree will automatically highlight that element
-
Look for the line with
<div id="shopify-section-..." -
Example:
<div id="shopify-section-template--25840001483033__video-hero" class="shopify-section">
-
Copy the ID
-
Right-click on the
idattribute - Select "Copy Attribute Value"
- OR manually select and copy the ID value
-
Right-click on the
Visual tips for finding the right element
-
You're looking for:
-
A
<div>element -
With an
idattribute -
That starts with
shopify-section- - Usually near the top of the HTML tree for that section
-
A
-
Don't confuse with:
- Class names (class="...") - these are NOT IDs
-
Other div IDs that don't start with
shopify-section- - Child elements inside the section
Troubleshooting ID finder
-
Problem: I can't find an ID starting with "shopify-section-"
- Solution: Make sure you're clicking on the outermost wrapper of the section, not an element inside it. Try hovering higher up on the page.
-
Problem: The element inspector isn't working
- Solution: Refresh the page and try again. Make sure Developer Tools are fully loaded.
-
Problem: There are multiple similar IDs
- Solution: Each section has a unique ID. Make sure you're selecting the correct section by its content/position on the page.
Best practices
✅ DO'S
-
Keep titles short
- Use 1-2 words when possible
- Example: "Features" not "Our Amazing Product Features"
-
Logical order
- Arrange nav items in the same order as sections appear on the page
-
Limit items
- Aim for 3-6 navigation items
- Too many items can look cluttered, especially on mobile
-
Use contrasting colors
- Make sure text is easily readable against the background
-
Test on mobile
- The navigation scrolls horizontally on small screens
- Make sure it's easy to use with your finger
❌ DON'TS
-
Don't use long titles
- Avoid: "Click here to see our customer testimonials"
- Better: "Testimonials"
-
Don't target sections that don't exist
- Make sure the Target ID matches an actual section on your page
-
Don't overuse
- Scroll Spy works best on long pages
- Don't add it to short pages with only 2-3 sections
-
Don't add multiple Scroll Spy sections
- Use only one per page
Troubleshooting
Navigation items don't highlight as I scroll
Solutions:
- Make sure "Show Highlight" is turned ON
- Check that your Target IDs are correct
- Verify the target sections actually exist on the page
Clicking a nav item doesn't scroll to the section
Solutions:
- Double-check the Target ID matches the section ID exactly
- Make sure there are no extra spaces in the Target ID field
- Try inspecting the page to confirm the section ID
Navigation looks too crowded on mobile
Solutions:
- Shorten your navigation item titles
- Reduce the number of nav items
- Consider changing mobile text alignment to "Left"
Text is hard to read
Solutions:
- Increase contrast between Text Color and Background Color
- Try a darker text color on light background, or vice versa
- Use the color picker to ensure accessibility
Need Further Assistance
If you encounter any issues or need additional help with your Concept theme, please reach out to our support guys via our Ticket System for assistance within 8 hours.
Scan the QR code below to join our WhatsApp community for updates, news, and announcements.

بانٹیں:
How to add custom text blocks with icons on product pages