Master the single pixel value that controls when your counter switches from desktop to mobile styling
🎯 Overview: The Breakpoint Dividing Line
The Breakpoint is the exact screen width (in pixels) where WhoKnew Views™ switches from desktop styling to mobile styling. Think of it as the dividing line between “big screens” and “small screens.”
Set it to 768px, and your counter will display desktop font sizes, icon sizes, and positioning on screens 769px and wider—while showing mobile-optimized sizes and positions on screens 767px and narrower. This single setting controls all responsive behavior for your view counters.
This article explains what the breakpoint does, how to choose the right pixel value for your store, and how it integrates with width, font size, icon size, and positioning settings to create a seamless mobile experience.
📏 What is a Breakpoint?
In responsive web design, a breakpoint is a specific screen width where your website’s layout changes to better fit the device. WhoKnew Views™ uses a single breakpoint to determine when to apply your “Small Screens” settings:
| Screen Width | Styling Applied | Example Devices |
|---|---|---|
| Above Breakpoint (e.g., 769px+) | Desktop styles: • Font Size (Default, px) • Icon Size (Default, px) • Width (Default, %) • Desktop positions | 💻 Desktops, laptops, large tablets (landscape) |
| Below Breakpoint (e.g., 768px or less) | Mobile styles: • Font Size (Small Screens, px) • Icon Size (Small Screens, px) • Width (Small Screens, %) • Mobile Position Overrides (if enabled) | 📱 Phones, small tablets (portrait) |
The breakpoint is binary—your counter is either in “desktop mode” or “mobile mode,” with no in-between. At exactly the breakpoint width (e.g., 768px), browsers typically round down, so 768px shows mobile styles.
⚙️ How to Set Your Breakpoint
Step 1: Navigate to Breakpoint Setting
- Go to WhoKnew → WhoKnew Views → Styling tab
- Scroll to the 📐 Layout and Background section
- Locate
Breakpoint (px)field
Step 2: Enter Your Pixel Value
Type a number (in pixels) for your breakpoint. Common values:
| Breakpoint | Best For | Desktop Range | Mobile Range |
|---|---|---|---|
| 480px | Phone-only mobile (aggressive) | 481px+ (tablets + desktops) | 480px and below (phones only) |
| 600px | Small phones + some tablets | 601px+ (large tablets + desktops) | 600px and below |
| 768px | Industry standard (tablets + phones) | 769px+ (desktops + large tablets) | 768px and below (most tablets + phones) |
| 1024px (default) | Includes iPads + smaller laptops | 1025px+ (desktops + large laptops) | 1024px and below (tablets + phones + small laptops) |
| 1200px | Desktop-first approach | 1201px+ (large desktops only) | 1200px and below (most devices) |
Step 3: Test on Real Devices
After saving, test your counter on actual devices or browser DevTools:
- 📱 iPhone SE (375px) – Should show mobile styles
- 📱 iPhone 12 (390px) – Should show mobile styles
- 📟 iPad Mini (768px) – Check if mobile or desktop (depends on breakpoint)
- 📟 iPad Pro (1024px) – Desktop styles if breakpoint is 768px; mobile if 1024px+
- 💻 Laptop (1366px+) – Should always show desktop styles
💡 Pro Tip: Match Your Theme’s Breakpoint
Most WordPress themes use 768px or 1024px as their primary breakpoint. Check your theme’s documentation or inspect its CSS to find @media (max-width: ???px) values. Matching your counter’s breakpoint to your theme’s breakpoint ensures visual consistency—when your site’s menu collapses to a hamburger icon, your counter should also switch to mobile mode.
🔍 Choosing the Right Breakpoint for Your Store
Scenario 1: Phone-Only Mobile Optimization (480px)
Best for: Stores with desktop-focused traffic where tablets should display desktop styles.
Result: Tablets (768px-1024px) and iPads show full desktop counter styling. Only phones (480px and below) get mobile-optimized sizing.
When to use:
- Your desktop counter looks great on iPads
- Mobile traffic is primarily phones, not tablets
- You want maximum real estate for counters on tablets
Scenario 2: Industry Standard (768px) ⭐ Recommended
Best for: Most WooCommerce stores with typical mobile/desktop traffic.
Result: Phones and portrait tablets (768px and below) show mobile styles. Landscape tablets and desktops (769px+) show desktop styles.
When to use:
- You want to match Bootstrap, Foundation, and most WordPress themes
- Your product images are large enough that desktop counters crowd mobile layouts
- You’re unsure—this is the safest, most universal choice
Why 768px? This is the portrait width of iPads and the industry-standard mobile breakpoint. Most CSS frameworks (Bootstrap, Tailwind, Foundation) use 768px as their primary mobile/desktop divider.
Scenario 3: Aggressive Mobile-First (1024px – Default)
Best for: Stores with high mobile traffic or compact desktop designs.
Result: Everything up to and including landscape iPads (1024px) gets mobile styling. Only large laptops and desktops (1025px+) show desktop styles.
When to use:
- Your mobile traffic is 60%+ of total visitors
- Your desktop counter is large and would overwhelm tablets
- You want to prioritize mobile experience even on larger devices
Trade-off: iPads in landscape mode (1024px) will show mobile sizing, which may look too small if your mobile font/icon sizes are very compact.
Scenario 4: Desktop-First Approach (1200px+)
Best for: B2B stores or high-ticket items with primarily desktop shoppers.
Result: Only the largest desktops (1201px+) show desktop styling. Everything else (including most laptops) shows mobile styling.
When to use:
- Analytics show 80%+ desktop traffic
- You’re targeting enterprise buyers on large monitors
- Your mobile counter is designed to work well even on smaller laptops
Caution: Most laptops (1366px-1440px) will show mobile styles with this breakpoint. Only 1080p+ desktops get desktop styling.
🛠️ Settings Controlled by the Breakpoint
The breakpoint doesn’t just control font sizes—it triggers all mobile-specific settings:
1️⃣ Font Size (Small Screens, px)
Below the breakpoint, WhoKnew Views™ applies your mobile font size to .view-counter-text.
@media (max-width: 768px) {
.view-counter-text {
font-size: 12px !important; /* Font Size (Small Screens) */
}
}2️⃣ Icon Size (Small Screens, px)
Below the breakpoint, your icon shrinks to the mobile size.
@media (max-width: 768px) {
.view-counter-icon-wrapper {
width: 10px; /* Icon Size (Small Screens) */
height: 10px;
}
.view-counter-icon {
font-size: 10px !important;
}
}3️⃣ Width (Small Screens, %)
Below the breakpoint, the counter’s container width changes.
@media (max-width: 768px) {
.product-views-counter {
width: 100%; /* Width (Small Screens, %) */
}
}4️⃣ Mobile Position Overrides
If Mobile Position Override is enabled, your custom mobile top/left/right/bottom positions apply below the breakpoint.
@media (max-width: 768px) {
.product-views-counter {
top: auto !important; /* Mobile Top Position */
bottom: 10px !important; /* Mobile Bottom Position */
left: 10px !important; /* Mobile Left Position */
}
}Key point: All four settings (font, icon, width, position) activate simultaneously at your breakpoint. They’re a package deal.
📐 Technical: How CSS Media Queries Work
When you set your breakpoint to 768px, WhoKnew Views™ generates a CSS media query like this:
/* Desktop styles (default) */
.view-counter-text {
font-size: 15px;
}
.view-counter-icon {
font-size: 12px;
}
/* Mobile styles (below breakpoint) */
@media (max-width: 768px) {
.view-counter-text {
font-size: 12px !important;
}
.view-counter-icon {
font-size: 10px !important;
}
}The max-width: 768px means “apply these styles when the screen is 768px or narrower.” The !important flags ensure mobile styles override desktop styles at that threshold.
Edge Case: Exactly at the Breakpoint
What happens if a screen is exactly 768px wide? Most browsers apply the max-width: 768px rule, so 768px shows mobile styles. To see desktop styles, the screen must be 769px or wider.
In practice:
- 767px → Mobile styles ✅
- 768px → Mobile styles ✅ (edge case)
- 769px → Desktop styles ✅
🎨 Common Breakpoint Values & Their Device Targets
| Breakpoint | Devices Showing Mobile Styles | Devices Showing Desktop Styles |
|---|---|---|
| 480px | • iPhone SE (375px) • Small phones | • All tablets • All laptops/desktops |
| 600px | • Most phones • Small phones (portrait) | • iPads (768px+) • Laptops/desktops |
| 768px | • All phones • iPads (portrait, 768px) • Small tablets | • iPads (landscape, 1024px) • Laptops (1366px+) • Desktops |
| 1024px | • All phones • All tablets (portrait + landscape) • iPad Pro (1024px) | • Laptops (1366px+) • Desktops (1920px+) |
| 1200px | • All phones • All tablets • Small laptops (1366px) | • Large desktops (1920px+) • 4K monitors |
⚠️ Common Mistake: Setting Breakpoint Too High
If you set your breakpoint to 1200px but your mobile font sizes are tiny (10px), users on 1366px laptops will see tiny mobile text on a large screen. Solution: Either lower your breakpoint to 768px, or increase your mobile font/icon sizes to work well on laptops.
🔗 How Breakpoint Interacts with Other Settings
Breakpoint + Width Settings
Your Width (Default, %) and Width (Small Screens, %) only make sense relative to the breakpoint:
| Setting | Example Value | When Applied |
|---|---|---|
| Width (Default, %) | 50% | Above breakpoint (e.g., 769px+) |
| Width (Small Screens, %) | 100% | Below breakpoint (e.g., 768px or less) |
Example: If breakpoint is 768px, a desktop user at 1920px sees a 50%-wide counter, while a phone user at 375px sees a 100%-wide (full-width) counter.
Breakpoint + Mobile Position Overrides
If you enable Mobile Position Override, your custom mobile positions (Top, Left, Right, Bottom) only apply below the breakpoint. Above it, desktop positions rule.
Example workflow:
- Set desktop counter at
Top: 0px, Left: 0px(top-left corner) - Enable Mobile Position Override
- Set mobile counter at
Bottom: 10px, Left: 10px(bottom-left corner) - Set Breakpoint to 768px
Result: Desktop users (769px+) see counter in top-left. Mobile users (768px or less) see counter in bottom-left.
Breakpoint + Mobile Visibility
The Mobile/Desktop Visibility setting (Show on Both / Desktop Only / Mobile Only) also uses your breakpoint to determine “mobile” vs. “desktop”:
- Desktop Only → Counter hidden below breakpoint
- Mobile Only → Counter hidden above breakpoint
- Show on Both → Breakpoint controls sizing/positioning, not visibility
🧪 Testing Your Breakpoint
Method 1: Browser DevTools
- Open a product page on your site
- Right-click → Inspect (Chrome/Firefox/Safari)
- Click the device toolbar icon (phone/tablet icon)
- Set dimensions to test:
- iPhone SE → 375px (mobile styles expected)
- iPad → 768px (check if mobile or desktop)
- Responsive → Manually drag to your breakpoint (e.g., 768px)
- Verify font size, icon size, and position change at your breakpoint
Method 2: Real Device Testing
DevTools are helpful, but real devices reveal the truth:
- 📱 Test on your actual phone (iPhone, Android)
- 📟 Test on a tablet (iPad, Android tablet)
- 💻 Test on a laptop (1366px-1440px range)
If mobile sizes look too small on a tablet, lower your breakpoint (e.g., 768px → 600px). If desktop sizes look too large on a tablet, raise your breakpoint (e.g., 768px → 1024px).
Method 3: Resize Your Browser Window
- Open a product page
- Slowly drag your browser window narrower
- Watch for the moment your counter’s text/icon size changes
- That’s your breakpoint in action!
💡 Pro Tip: Check Your Analytics
Use Google Analytics → Audience → Mobile → Overview to see your mobile vs. desktop traffic split. If 70% of visitors are on phones, prioritize mobile styling with a higher breakpoint (1024px). If 70% are on desktops, use a lower breakpoint (768px or 600px) to maximize desktop real estate.
🚀 Advanced Tips & Best Practices
1. Match Your Theme’s Breakpoint
Check your theme’s CSS for its primary mobile breakpoint. Most themes use @media (max-width: 768px) or @media (max-width: 1024px). Use the same value for visual consistency.
2. Don’t Change Breakpoint Frequently
Changing your breakpoint after launch means re-testing all your font/icon sizes and positions. Set it correctly during initial setup and leave it alone unless absolutely necessary.
3. Consider Landscape Orientation
Phones in landscape (e.g., iPhone 12 at 844px wide) may cross your breakpoint threshold. If your breakpoint is 768px, landscape phones show desktop styles. If this looks weird, raise breakpoint to 1024px.
4. Use 768px When in Doubt
768px is the most universally compatible breakpoint. It matches Bootstrap, Foundation, WordPress core, and most premium themes. When unsure, start here.
5. Test on iPad Mini (768px)
iPad Mini is exactly 768px in portrait mode, making it the perfect edge-case test device. If your breakpoint is 768px, iPad Mini will show mobile styles—does that look good?
6. Don’t Rely on Breakpoint for Per-Product Adjustments
The breakpoint is global—it applies to all counters sitewide. If you need different breakpoints for specific products, use Custom CSS with product-specific media queries.
🐛 Troubleshooting Breakpoint Issues
Issue 1: “Mobile styles aren’t applying on my phone”
Causes & Fixes:
- Breakpoint too low – If breakpoint is 480px, but your phone is 390px wide, styles should apply. Check if you saved settings.
- Browser cache – Hard refresh (Ctrl+Shift+R) or clear cache.
- Theme CSS override – Your theme may have
!importantrules forcing font sizes. Use browser DevTools to inspect.view-counter-textand check which CSS rule is winning. - Viewport meta tag missing – Ensure your theme has
<meta name="viewport" content="width=device-width, initial-scale=1">in the<head>. Without this, mobile browsers don’t recognize media queries.
Issue 2: “Desktop styles show on tablets, but I want mobile styles”
Solution: Raise your breakpoint. If breakpoint is 768px and tablets are 768px-1024px, they’re at the edge. Change breakpoint to 1024px to force mobile styles on all tablets.
Issue 3: “Mobile styles show on my laptop”
Solution: Lower your breakpoint. If breakpoint is 1200px and your laptop is 1366px, you’re barely above the threshold. Change breakpoint to 768px or 1024px to give laptops desktop styling.
Issue 4: “Breakpoint doesn’t affect positioning”
Cause: If your counter uses Relative positioning, mobile position overrides don’t apply (relative positioning ignores top/left values). Solution: Change to Absolute or Fixed positioning to enable mobile position overrides.
✅ Quick Checklist: Setting Your Breakpoint
- ✅ Decide on primary device target (phones-only, tablets+phones, or aggressive mobile-first)
- ✅ Check your theme’s documentation for its primary breakpoint
- ✅ Review analytics to see mobile vs. desktop traffic split
- ✅ Set breakpoint (start with 768px if unsure)
- ✅ Configure mobile font/icon sizes (should be 2-3px smaller than desktop)
- ✅ Configure Width (Small Screens, %) (often 100% for full-width mobile)
- ✅ Test on real devices: iPhone (375px), iPad (768px), laptop (1366px)
- ✅ Verify counter size/position changes at your breakpoint
- ✅ Check landscape orientation on phones (may cross breakpoint threshold)
- ✅ Ensure mobile counter doesn’t overlap “Add to Cart” button or product images
- ✅ Test after theme updates (theme CSS changes may affect breakpoint behavior)