Item Styles control the visual appearance and hover behavior of individual portfolio items. Visual Portfolio includes four built-in styles: Default, Fade, Fly, and Emerge.
Overview
Item styles determine how content is displayed on portfolio items, including hover effects, overlays, caption positioning, and animation behavior. Each style provides a different visual experience and can be combined with any layout.Available Item Styles
1. Default Style
The classic style with caption below the image. Characteristics:- Caption positioned below image
- No overlay effects
- Clean, simple appearance
- Best readability
- Suitable for all content types
- Image:
templates/items-list/items-style/image.php - Meta:
templates/items-list/items-style/meta.php
- Blog posts with excerpts
- Portfolio items with detailed descriptions
- E-commerce products
- Content-heavy galleries
2. Fade Style
Overlay fades in on hover with smooth opacity transition. Characteristics:- Caption overlays the image
- Appears on hover with fade effect
- Semi-transparent dark overlay
- Customizable overlay color
- Smooth opacity transitions
- Image:
templates/items-list/items-style/fade/image.php - Meta:
templates/items-list/items-style/fade/meta.php - Styles:
templates/items-list/items-style/fade/style.scss
- Photography portfolios
- Image galleries
- Minimal text content
- Visual-first presentations
3. Fly Style
Overlay slides in from bottom on hover. Characteristics:- Caption hidden below image
- Slides up on hover
- Dynamic entrance animation
- Full overlay coverage
- Engaging interaction
- Image:
templates/items-list/items-style/fly/image.php - Meta:
templates/items-list/items-style/fly/meta.php - Styles:
templates/items-list/items-style/fly/style.scss
- Interactive portfolios
- Project showcases
- Team member galleries
- Creative presentations
4. Emerge Style
Caption emerges from within the image on hover. Characteristics:- Caption grows from center
- Scale and fade animation
- Elegant emergence effect
- Centered content
- Smooth transformations
- Image:
templates/items-list/items-style/emerge/image.php - Meta:
templates/items-list/items-style/emerge/meta.php - Styles:
templates/items-list/items-style/emerge/style.scss
- Elegant portfolios
- Luxury brands
- Artistic presentations
- Sophisticated galleries
Template Structure
Each item style consists of two template files:Image Template
Handles the item’s image and container:Meta Template
Handles the item’s caption and metadata:Item Parts
Each item can display various parts:Image
- Main portfolio image
- Responsive with srcset
- Lazy loading support
- Aspect ratio control
Icon
- Optional overlay icon
- Indicates item type (image, video, link)
- Customizable appearance
Title
- Item title/heading
- Linkable to post/page
- Customizable typography
Categories
- Taxonomy terms display
- Filterable categories
- Custom styling
Excerpt
- Post excerpt or description
- Customizable length
- HTML support
Inline Meta
- Author information
- Publish date
- Comments count
- Views count
- Reading time
Read More Button
- Optional call-to-action
- Customizable label
- Link to full content
Configuration Options
Caption Text Alignment
Text alignment for captions (Default style).
left, center, right
Overlay Text Alignment
Text alignment for overlay content (Fade, Fly, Emerge styles).
left, center, right
Show Options
Control what meta information displays:show_title- Display item titleshow_excerpt- Display excerptshow_categories- Display categoriesshow_author- Display author nameshow_date- Display publish dateshow_comments_count- Display comment countshow_views_count- Display view countshow_reading_time- Display estimated reading timeshow_icon- Display overlay iconshow_read_more- Display read more button
Usage Examples
Default Style with Caption
Fade Overlay on Hover
Fly Effect Portfolio
Emerge Style Gallery
Styling and Customization
Each item style includes SCSS variables for easy customization:Default Style Variables
Fade Style Variables
Fly Style Variables
Emerge Style Variables
Best Practices
Choosing the right style
Choosing the right style
- Default: When text content is important
- Fade: For image-focused galleries
- Fly: For interactive, engaging portfolios
- Emerge: For elegant, sophisticated presentations
Content considerations
Content considerations
- Keep titles concise (3-8 words)
- Limit excerpts to 2-3 lines
- Use high-quality images
- Ensure good contrast for overlay text
Performance tips
Performance tips
- Optimize images before uploading
- Use lazy loading for galleries
- Minimize content in overlays
- Test on mobile devices
Accessibility
Accessibility
- Provide alt text for images
- Ensure sufficient color contrast
- Test keyboard navigation
- Don’t hide critical information in hover-only overlays
Custom Item Styles
Developers can create custom item styles:- Create new directory:
templates/items-list/items-style/custom-style/ - Add
image.phptemplate - Add
meta.phptemplate - Add
style.scssfor styling - Register style with filter
Common Issues
Combining Styles with Layouts
All item styles work with all layouts:Grid + Fade
Uniform grid with hover overlays
Masonry + Fly
Dynamic heights with slide-up effects
Justified + Emerge
Professional galleries with elegant hovers
Tiles + Default
Custom patterns with captions below
Source Code Reference
- Default Image:
templates/items-list/items-style/image.php:1 - Default Meta:
templates/items-list/items-style/meta.php:1 - Fade Style:
templates/items-list/items-style/fade/ - Fly Style:
templates/items-list/items-style/fly/ - Emerge Style:
templates/items-list/items-style/emerge/ - Style Variables:
templates/items-list/items-style/_variables.scss:1