Skip to main content
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
Templates:
  • Image: templates/items-list/items-style/image.php
  • Meta: templates/items-list/items-style/meta.php
Best for:
  • 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
Templates:
  • 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
Best for:
  • 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
Templates:
  • 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
Best for:
  • 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
Templates:
  • 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
Best for:
  • 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

string
default:"center"
Text alignment for captions (Default style).
Options: left, center, right

Overlay Text Alignment

string
default:"center"
Text alignment for overlay content (Fade, Fly, Emerge styles).
Options: left, center, right

Show Options

Control what meta information displays:
  • show_title - Display item title
  • show_excerpt - Display excerpt
  • show_categories - Display categories
  • show_author - Display author name
  • show_date - Display publish date
  • show_comments_count - Display comment count
  • show_views_count - Display view count
  • show_reading_time - Display estimated reading time
  • show_icon - Display overlay icon
  • show_read_more - Display read more button

Usage Examples

Default Style with Caption

Fade Overlay on Hover

Fly Effect Portfolio

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

  • Default: When text content is important
  • Fade: For image-focused galleries
  • Fly: For interactive, engaging portfolios
  • Emerge: For elegant, sophisticated presentations
  • Keep titles concise (3-8 words)
  • Limit excerpts to 2-3 lines
  • Use high-quality images
  • Ensure good contrast for overlay text
  • Optimize images before uploading
  • Use lazy loading for galleries
  • Minimize content in overlays
  • Test on mobile devices
  • 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:
  1. Create new directory: templates/items-list/items-style/custom-style/
  2. Add image.php template
  3. Add meta.php template
  4. Add style.scss for styling
  5. Register style with filter
See Custom Templates for detailed instructions.

Common Issues

Overlay not appearing on hover: Check that JavaScript is loaded and no CSS conflicts exist. Inspect browser console for errors.
Text not readable on overlay: Increase overlay opacity or add text shadow. Ensure good contrast between text and background.
Animation stuttering: This can happen with too many items or large images. Use lazy loading and optimize images.

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