Custom CSS

Table of Contents

Block settings → Custom CSS. Styles you write here apply to this block only.

Write rules against the word selector. It is replaced on output by a class that is unique to this block, so the same rule can be pasted into another block without collisions.

selector .vp-portfolio__item {
    background-color: #f0f0f0;
}

Useful selectors

SelectorWhat it matches
selectorThe block wrapper
selector .vp-portfolio__itemsThe list of items
selector .vp-portfolio__itemOne item
selector .vp-portfolio__item-imgThe item image wrapper
selector .vp-portfolio__item-overlayThe overlay of the Fade, Fly, Emerge and Caption Move skins
selector .vp-portfolio__item-captionThe caption of the Classic and Emerge skins
selector .vp-filterThe filter
selector .vp-sortThe sort
selector .vp-searchThe search (Pro)
selector .vp-paginationThe pagination

Click Open in Modal for a larger editor. The modal shows a Classes Tree with every class the current block renders, so you can pick selectors without the browser inspector. For anything not listed, use the browser’s inspector on the published page.

Notes

  • HTML is not allowed in the field and is removed on save.
  • Skins expose CSS variables you can override here as well. See CSS Variables.
  • The block has no “Additional CSS class(es)” field. Use the HTML anchor field in the Advanced panel if you need an ID.
Was this page helpful?