Skip to main content

Overview

Visual Portfolio provides five distinct layout types for displaying your portfolio content. Each layout offers unique presentation styles and configuration options to match your design needs.
Layouts are registered through the vpf_extend_layouts filter hook in the Visual_Portfolio_Get class, allowing developers to add custom layouts.

Available Layouts

Tiles

The Tiles layout creates a Pinterest-style masonry grid with customizable tile sizes and patterns. Key Features:
  • Customizable tile patterns (e.g., 3|1,1| for 3 columns with equal tiles)
  • Supports complex grid arrangements
  • Responsive column control
  • Aspect ratio customization
Configuration:

Masonry

Masonry layout automatically arranges items in a grid where items flow naturally based on their height. Key Features:
  • Responsive columns (1-5 columns)
  • Horizontal order option
  • Custom aspect ratio support
  • Optimal for varying content heights
Configuration:

Grid

Grid layout displays items in a traditional grid with equal heights across rows. Key Features:
  • Fixed column structure
  • Uniform row heights
  • Consistent spacing
  • Clean, organized presentation
Configuration:

Justified

Justified layout creates rows with consistent heights, similar to Flickr or Google Photos. Key Features:
  • Dynamic row height adjustment
  • Row height tolerance control
  • Max rows count limit
  • Last row alignment options (left, center, right, hide)
Configuration:

Slider

Slider layout presents items in a carousel format with various transition effects. Key Features:
  • Multiple effects: Slide, Coverflow, Fade
  • Autoplay support with pause on hover
  • Navigation: Arrows, Bullets, Thumbnails
  • Speed and timing controls
Configuration:
Navigation Options:
Display previous/next arrows for manual navigation

Layout Registration

Developers can extend layouts using the filter hook:

Adding Custom Layouts

Common Layout Settings

All layouts share these common configuration options:
Control the spacing between portfolio items:
  • Default: 30px
  • Range: 0-200px
  • CSS Variable: --vp-items__gap
Configure columns for different breakpoints:
Control pagination and lazy loading:

Template Structure

Layout templates are located in:
Each layout renders through the main portfolio template system in Visual_Portfolio_Templates class at classes/class-templates.php:6764.
  • Visual_Portfolio_Get - Layout retrieval and management (classes/class-get-portfolio.php)
  • Visual_Portfolio_Admin - Layout registration (classes/class-admin.php:323)
  • Visual_Portfolio_Controls - Layout control system (classes/class-controls.php)
  • Visual_Portfolio_Templates - Template rendering (classes/class-templates.php)

See Also

Content Sources

Learn about different content source types

Item Styles

Explore available item styling options

Responsive Design

Configure responsive breakpoints

API Reference

View all available filter hooks