Contents
On this page

Views - Plugixa Recipe

A View is a reusable design preset. It bundles a layout (grid / slider / masonry / list), colors, typography, spacing, image options, category bar, and pagination styling into a single saved record that any shortcode or block can reference.

Create one view for the home page (“Featured, 4-column grid, large images”), another for a sidebar (“Compact list, no images”), and swap them at will without touching the page content.

The views list

Navigate to Recipes → Views.

The Views admin list showing the four saved views - Grid, List, Masonry and Slider - each with its description, slug and layout, with Grid starred as the default

Each row shows the name, slug, layout style, and whether it is the default view (used when a shortcode doesn’t specify one). You can duplicate a view as a starting point for a new one.

The view editor

Click a view to open the editor.

The view editor for the Grid view: Name, Slug and Description above a Configuration panel with Layout, Colors, Typography, Spacing, Image & Video, Categories and Pagination tabs; Layout is open, with Layout Style Grid and 3, 2 and 1 columns for desktop, tablet and mobile

The form is organized into 7 tabs:

Tab Configures
Layout Style, columns, slider behavior
Colors Light mode, dark mode
Typography Font families, sizes, weights
Spacing Gap, padding, borders, shadows
Image & Video Image size, aspect ratio, border radius, video preview
Categories Category filter bar - style, colors, typography
Pagination Pagination on or off, its style and the number per page

Tab 1 · Layout

  • Layout style: grid, slider, masonry, list - drives which template (templates/{style}.php) is used.
  • Columns: separate values for desktop / tablet / mobile.
  • Slider options (when style = slider): slidesPerView, autoplay, autoplay speed, effect (slide / fade / cube / flip), loop, grabCursor, pauseOnHover, keyboard, mousewheel, paginationType (bullets / fraction / progress).

Tab 2 · Colors

The Colors tab of the view editor, with a Dark Mode switch above a Light Mode Colors block where each of Card Bg, Text, Title, Title Hover, Meta, Star, Star Empty, Border, Badge Bg and Badge Text has a colour swatch beside its hex value

Each color field uses the mui-color-input picker (swatch + hex input). Separate palettes for:

  • Light mode - card background, title, text, meta, border, badge, star colors.
  • Dark mode - same palette, applied when dark_mode="true" on the shortcode or via a CSS variable.

See the --pxr-* CSS custom properties in assets/frontend/src/custom.css - every color becomes a variable on the container.

Tab 3 · Typography

The Typography tab of the view editor: a font, size and weight for card titles, and a font and size for body text and for meta text

  • Title font size / weight / family (Google Fonts picker - see the GoogleFontPicker component).
  • Text font size / family.
  • Meta font size / family.

When you pick a Google Font, the plugin registers it for enqueue on pages where the shortcode/block is present.

Tab 4 · Spacing

The Spacing tab of the view editor, with sliders for gap, card padding, content padding, border radius and border width, and an Enable Box Shadow switch

  • Gap between cards
  • Card padding
  • Content padding
  • Border radius
  • Border width
  • Shadow preset (none / sm / md / lg / xl)

Tab 5 · Image & Video

The Image & Video tab of the view editor: aspect ratio 16:9, object fit Cover, image size Medium, image border radius, hover effect Lift and an Enable Video on Cards switch

  • Image size: any registered WordPress size (thumbnail, medium, medium_large, large, full, or custom).
  • Aspect ratio: free / 1:1 / 4:3 / 16:9 / 3:4 / custom.
  • Border radius for images.
  • Object fit: cover / contain.
  • Video preview on hover toggle: embeds the recipe’s video URL on card hover.

Tab 6 · Categories

Configure the category filter bar that appears above the grid:

  • Style: none / tabs / pills / dropdown.
  • Colors (background, text, active background, active text, border) - with dark-mode overrides.
  • Typography (font size, weight, family).
  • Spacing (gap, padding).
  • Border (radius, width, color).

Tab 7 · Pagination

  • Pagination: on/off, style (numbers / load more / infinite scroll), per-page count.

Saving a view

There is no preview inside the view editor. The Configuration tabs are settings, and you see the result on the page rather than beside the form.

What you do get is immediacy on save: a view applies everywhere it is used as soon as it is saved, with no cache to purge. The quickest way to judge a change is to keep a page that uses the view open in a second tab and reload it after saving. To try a design before it is live, point a draft page at the view with a shortcode and preview that page.

Assigning a view

In shortcodes

[plugixa_recipe view="featured-grid"]
[plugixa_recipe id="7"] - loads the saved shortcode's view

In blocks

The Plugixa Recipe block sidebar has a View dropdown. Pick any saved view.

Default view

One view can be marked default. It’s used when a shortcode/block doesn’t specify a view. Flip the is_default toggle on the view form.

Custom CSS per view

Each view has a customCss config key. Styles you put there are scoped to #plugixa-recipe-root instances using this view - a quick way to add theme-specific tweaks without touching global CSS.

Duplicating views

Use the Duplicate action on the list to clone a view. The copy gets “(Copy)” appended to the name; the slug gets -copy appended.

Quick Links

Share