Documentation Index
Fetch the complete documentation index at: https://mintlify.com/nk-crew/visual-portfolio/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Visual Portfolio includes a comprehensive responsive design system with customizable breakpoints for different device sizes. The system ensures your portfolios look great on all screen sizes from mobile phones to large desktop displays.Breakpoints are managed by the
Visual_Portfolio_Breakpoints class at classes/class-breakpoints.php:15Default Breakpoints
Visual Portfolio uses five standard breakpoints:Breakpoint Reference
- Extra Small (XS)
- Small (SM)
- Medium (MD)
- Large (LG)
- Extra Large (XL)
Default: 320pxDevices:
- Small mobile phones
- Portrait orientation
- Single column layouts
- Stacked elements
- Minimal spacing
Getting Breakpoints
Retrieve All Breakpoints
Get Default Breakpoints
Customizing Breakpoints
Breakpoints can be customized using WordPress filters:Override Individual Breakpoints
Override Default Values
Breakpoint Methods
Each breakpoint has dedicated getter methods:Extra Small (XS)
Extra Small (XS)
vpf_default_breakpoint_xsvpf_breakpoint_xs
Small (SM)
Small (SM)
vpf_default_breakpoint_smvpf_breakpoint_sm
Medium (MD)
Medium (MD)
vpf_default_breakpoint_mdvpf_breakpoint_md
Large (LG)
Large (LG)
vpf_default_breakpoint_lgvpf_breakpoint_lg
Extra Large (XL)
Extra Large (XL)
vpf_default_breakpoint_xlvpf_breakpoint_xl
Responsive Controls
Many portfolio settings support per-breakpoint configuration:Columns
Items Gap
Slider Items Per View
CSS Variables
Breakpoints are exposed as CSS custom properties:Using in Custom CSS
JavaScript Integration
Breakpoints are available in JavaScript:Layout-Specific Responsive Behavior
Grid & Masonry
Tiles
Justified
Slider
Mobile Optimization
Touch Gestures
Touch Gestures
Visual Portfolio supports touch events:
- Swipe for sliders
- Pinch to zoom in lightbox
- Touch-friendly navigation
Performance
Performance
Mobile-specific optimizations:
- Lazy loading images
- Reduced animation complexity
- Optimized asset delivery
- Hardware acceleration
Responsive Images
Responsive Images
Automatic image sizing:
Settings Integration
Breakpoints are used in global settings:Best Practices
Mobile-First
Design for mobile devices first, then enhance for larger screens:
- Start with single column
- Progressive enhancement
- Touch-friendly targets
Test Thoroughly
Test on actual devices:
- Various screen sizes
- Different orientations
- Multiple browsers
Content Prioritization
Show most important content first:
- Critical content visible
- Hide less important elements
- Use progressive disclosure
Performance
Optimize for mobile networks:
- Lazy load images
- Minimize assets
- Reduce HTTP requests
Testing Responsive Design
Browser DevTools
- Open browser DevTools (F12)
- Toggle device toolbar
- Select device or custom size
- Test interactions and layouts
WordPress Site Health
Real Device Testing
Recommended test devices:- iPhone SE (375px)
- iPhone 12 Pro (390px)
- iPad (768px)
- iPad Pro (1024px)
- Desktop (1920px)
Accessibility Considerations
Related Classes
Visual_Portfolio_Breakpoints- Breakpoint management (classes/class-breakpoints.php)Visual_Portfolio_Controls- Responsive control fieldsVisual_Portfolio_Assets- Responsive asset loading
See Also
Layouts
Configure responsive layouts
Assets
Responsive asset management
Settings
Global responsive settings
Filters
Breakpoint filter hooks