VARZ theme documentation

VARZ is a fast classic WordPress theme built on the VARZ CSS framework: elements are styled with short CSS variables right in their style attribute, so there is no large stylesheet to override. Everything is set in Appearance > Customize with a live preview – hover an element in the preview and click its pencil to open its settings.

Installation

  1. Go to Appearance > Themes > Add New > Upload Theme and choose varz.zip.
  2. Click Install Now, then Activate.
  3. Open Appearance > Customize > Starter designs and apply a design, or only its colors.

Starter designs

Nine ready looks (palettes for light and dark, fonts, buttons and form fields). Apply design sets all of them in the live preview; Colors only keeps your fonts and buttons. Nothing is saved until you click Publish.

Colors and dark mode

Customize > Colors

  • Color scheme: automatic (follows the visitor’s system), always light or always dark. Add the Light / dark switch element to the header or footer to let visitors choose – their choice stays in their own browser.
  • Every palette color has a light and a dark value: accent, accent 2, text links, headings, text, muted text, surfaces, page background, borders.
  • Custom colors: your own colors, offered in every color picker of the theme (CSS variable --vz-c-{name}).

Layout & spacing

  • Breakpoints: 3 (X 1199, M 767, S 575px – the default, smaller CSS) or 5 (G 1399, X 1199, L 991, M 767, S 575px). Responsive settings get one value per breakpoint – pick a device above a setting to change it there.
  • Site width (header, footer, grids, pages with a sidebar) and Content width (posts and pages without a sidebar).
  • Content top & bottom spacing, side spacing, sidebar width and the gap next to it – per breakpoint.

Customize > Header has up to three rows: Top bar, Main row and Bottom row.

For each row:

  • Columns per breakpoint: hidden, left + right, left + center + right, centered, left only or a vertical stack.
  • Elements in each column (see the list below), each with its own options (gear) and Design tab.
  • Row height, font size, site or full width, background color, background image with overlay, and a Design panel for colors, borders and shadow.

Header > General

  • Sticky header per breakpoint: nothing, the whole header, the top bar, top bar + main row, the main row, main + bottom rows or the bottom row. CSS only – no extra script.
  • Transparent header over title sections or only over images; the rows get their backgrounds back when the page scrolls. Text: auto, light or dark.
  • Collapse menu at: from this breakpoint down the menus, search and header button move into the Menu panel. The Menu button: look, icon, and where its text is hidden.

Logo & site title, Primary menu, Secondary menu, Menu (any menu or location), Search, Contact info, Divider, Spacer, Action button, Menu button, Custom text, Social links, Light / dark switch, Account (log in / user menu), Drawer / popup button, Language switcher, Widget area, Icon link, Image, Shortcode, Copyright text, Cart (WooCommerce). The footer also has “Powered by” credits.

Tips:

  • Social links show the accounts from Customize > Social networks, in that list’s order (reorder them there). Tick accounts in the element to show only some.
  • A Gap set in an element’s Design tab spaces the links of Social links and menu elements, and replaces “Space between”.
  • Menus open their dropdowns on hover or click; a menu can move items that do not fit into a “More” dropdown.

Mobile menu

Header > Mobile menu: opens full screen or as a drawer (left or right), with its own contents (any elements, in order), panel, close button and link styles.

Customize > Footer: top, middle and bottom rows, each with 1–6 columns.

  • Column widths such as 50 / 25 / 25 % or 40 / 20 / 20 / 20 %.
  • On smaller screens per breakpoint: as configured, two columns, stacked or hidden.
  • Column gap, top & bottom spacing, elements side by side or stacked, alignment per column and breakpoint, background and Design.
  • Widgets: place a Widget area element and fill Footer widgets 1–6 in Appearance > Widgets.
  • Back to top button with its own icon, position and styles.

Extras

  • Promo bar (Header > Promo bar): a message above the header with a link. Visitors can close it (remembered in their browser, no cookies); choose when it shows again, or show it again to everyone.
  • Drawers & popup: left and right drawers and a popup are widget areas. Open them with the Drawer / popup button element or any link to #varz-drawer-left, #varz-drawer-right or #varz-popup.
  • Floating button: a corner button opening the Floating panel widget area.
  • Bottom bar: the Bottom Fixed Menu as an app-like bar at the bottom of the screen, with icons picked from the links.

Blog, posts and pages

Blog & archives

  • Layout: list, list with the image on the side, or a grid of cards; columns and spacing per breakpoint.
  • Item elements: drag to reorder, tick to show, the gear opens each element’s options and styles.
  • Item wrapper and content styles, pagination (numbers, previous / next, none) and its styles.

Single post and Pages

  • Sidebar: none, right, left or both.
  • Elements: title, meta, featured image, content, custom fields, author box, previous / next, related posts and comments (pages: title, featured image, content, custom fields, comments) – reorder, show or hide, style each one.

Title section (Customize > Title section): show the title in the content, in a band under the header, or hide it (still read by screen readers). Elements, stacked or side by side layout, alignment, height, spacing, width, background color or image (featured or custom) with overlay, text color.

Custom post types get their own archive and single sections under Customize > Custom post types.

Customize > Sidebars: a sticky sidebar (below a sticky header, not on phones), the sidebar as one panel, each widget as a panel, widget title styles.

Typography

  • Web fonts: one per line as Family:weights, e.g. Inter:400,700. Fonts are downloaded once by your server from Bunny Fonts and served from your own site – visitors never contact a font service.
  • Text font and headings font (web fonts or system font stacks), preload of the main font files.
  • Text size, line height, headings weight and H1–H6 sizes per breakpoint.

Buttons & forms

Button color, padding (--vz-btn-p), corner radius and text weight; form field corner radius. VARZ Builder components use the same tokens.

Icons

Customize > Icons: paste the SVG code of your own icons – only the shapes are kept, colors follow the text color. They appear in every icon picker.

WordPress styles & scripts

  • WordPress block styles: keep them (compatible with all blocks) or VARZ only (about 15 KB less per page; core blocks such as columns look plain).
  • Prefixed VARZ variable names (--vz-p instead of --p) for sites where other CSS uses short custom properties.
  • WordPress emoji script on or off.
  • Open linked images in a lightbox: images that link to their file open in an image viewer, one gallery per post.

Page settings

In the block editor, the Page layout panel (posts, pages and every public post type) overrides the Customizer for one entry:

  • Header: default, without the menu, transparent (over the title section or the content), not transparent, or hidden.
  • Footer: default or hidden.
  • Title: in a title section, in the content, or hidden (kept for screen readers); the title section can use the featured image.
  • Sidebars: none, left, right or both.
  • Content width: content width, 720px, 960px, site width or full width (edge to edge).
  • Hide on this page: featured image, meta, categories & tags, previous / next, author box, related posts, comments.

Page templates: Full width and Blank canvas for page builders.

WooCommerce

Shop, product, cart, checkout and account pages use the theme layout, palette and buttons. Customize > Products: grid columns per breakpoint, card alignment, button width, card, image, title, price and button styles, and shop / product sidebars (their own widget areas).

Menu locations: Primary, Secondary, Footer, Social Links, Account, Extra Menu 1 and 2, Bottom Fixed Menu.

Widget areas: Sidebar, second sidebar, Header widgets, Mobile menu widgets, Footer widgets 1–6, Floating panel, the drawers and the popup, and the shop and product sidebars with WooCommerce.

For developers

Hooks

Actions are named varz:{area}:{position}. before / after are outside an area, top / bottom inside it.

AreaHooks
Pagevarz:header:before, varz:header:after, varz:footer:before, varz:footer:after
Contentvarz:content:before, varz:content:top, varz:content:bottom, varz:content:after
Title sectionvarz:hero:before, varz:hero:top, varz:hero:bottom, varz:hero:after (argument: $hero)
Singularvarz:single:before, varz:single:after, varz:single:entry:before / top / bottom / after
Single elementsvarz:single:element:before / after, varz:single:{element}:before / after
Related postsvarz:single:related:top / bottom, varz:single:related:card:top / bottom
Archivesvarz:archive:before, varz:archive:after, varz:loop:before, varz:loop:after, varz:loop:card:top, varz:loop:card:bottom

Single, archive, loop and title section hooks also fire with the post type at the end:

// A map below every apartment page
add_action( 'varz:single:after:apartment', function () {
	echo do_shortcode( '[my_map]' );
} );

Filters

FilterUse
varz_css_fileThe framework build (varz, varz-slim …)
varz_assets_url, varz_tokens_urlWhere the framework files load from
varz_tokensfalse: no design tokens file
varz_content_width$content_width (default 760)
varz_post_typesPost types with Customizer sections
varz_page_templatesThe page templates offered
varz_sidebar_position, varz_main_sidebarSidebar side and widget area
varz_customizer_presetsAdd or change starter designs
varz_breadcrumb_items, varz_breadcrumbs_pluginBreadcrumbs
varz_languagesLanguage switcher items
varz_custom_fields, varz_custom_field_htmlCustom field elements
varz_menu_item_iconBottom bar icons
varz_render_layerWhether a drawer / popup is printed
varz_woo_pageWhether WooCommerce styles load on a page

Pluggable functions

A child theme can replace: varz_setup, varz_posted_meta, varz_entry_footer, varz_featured_image, varz_author_bio, varz_pagination, varz_breadcrumbs, varz_social_links, varz_back_to_top, varz_back_to_top_button.

Styling with VARZ variables

<div style="--d:grid;--gtc:1fr 1fr;--gtc-m:1fr;--g:24px;">
  <div>Responsive without a single CSS rule</div>
</div>

Breakpoint suffixes: -x (≤1199px), -m (≤767px), -s (≤575px), plus -g and -l with 5 breakpoints. States: --hov- (hover), --foc- (focus). Full reference: the VARZ framework docs on varz.dev.

Privacy

The theme tracks nothing and loads nothing from other servers: fonts are self-hosted and the light / dark choice stays in the visitor’s browser. Two WordPress features can contact other servers:

  • the emoji script (on by default) loads emoji images from s.w.org in browsers without emoji support – turn it off in Customize > WordPress styles & scripts;
  • avatars in the author box, post meta and comments come from Gravatar – turn them off in Settings > Discussion > Show avatars.