Skip to content
GravityKit
Buy
Sign in
0 items
  • Plugins

    GravityKit All Access

    Our complete Kit of essential tools for extending and enhancing Gravity Forms—everything you need to build powerful web apps and workflows.

    Learn more
    • GravityView Pro

      GravityView Pro

      Bestseller

      Get Live Filters, Maps, DataTables, the Advanced Elementor Widget and every other Pro feature to build the app your process needs.

    • GravityView

      GravityView

      Trending

      Display Gravity Forms entries on the frontend of your site and build powerful web applications.

    • GravityImport

      GravityImport

      Trending

      Import entries from CSV files into Gravity Forms to transfer data, create new forms, or update existing entries.

    • GravityEdit

      GravityEdit

      Quickly edit Gravity Forms entries inline to save time, reduce clicks, and streamline your workflow.

    • GravityCharts

      GravityCharts

      Trending

      Turn Gravity Forms entries into interactive charts and graphs.

    • GravityActions

      GravityActions

      Update multiple Gravity Forms entries at once, send bulk emails, and streamline your workflow.

    • GravityCalendar

      GravityCalendar

      Turn Gravity Forms entries into dynamic calendars to showcase events, schedules, appointments, and more.

    • GravityExport

      GravityExport

      Export Gravity Forms entries to Excel, CSV, PDF, or Google Sheets, then share them with secure links or deliver them to cloud storage on a schedule.

    • GravityMath

      GravityMath

      Perform advanced calculations on Gravity Forms entries to display totals, averages, or build custom calculators.

    • GravityRevisions

      GravityRevisions

      Track, compare, and restore changes made to Gravity Forms forms and entries with a full version history.

    • GravityMigrate

      GravityMigrate

      Migrate all Gravity Forms data between sites, including forms, entries, settings, Views, feeds, and file uploads, and import forms from other form plugins.

    • GravityBoard

      GravityBoard

      Manage projects with collaborative project management. Coordinate with your team and streamline your workflows.

    • GravitySearch

      GravitySearch

      Search Gravity Forms entries across every form from one screen.

  • Ideal For

    • Nonprofits
    • Web Agencies
    • Education
    • Developers
    • Small Businesses
    • Startups
    Explore All Use Cases

    Case studies

    • Be There Local
    • Killer Shorts
    • West Fork Schools
    • Princeton University
    • BrightLeaf Giving
    • Jacksonville Port Authority
    • National Severe Storms Lab
    • Leadpal
    View All Case Studies
  • Resources

    • Blog
    • Case studies
    • Newsletter
    • GravityKit vs competitors
    • Live Demos
    • Documentation
    • Developer docs
    • GravityKit Academy

    Ultimate guides

    • How to use Gravity Forms
    • Editing Gravity Forms entries
    • Importing Gravity Forms entries
    • Exporting Gravity Forms entries
    • Displaying Gravity Forms entries
    • Gravity Forms conditional logic
    • Gravity Forms calculations
    View More Articles
  • Support
  • Pricing
  • Plugins

    • GravityView Pro

      GravityView Pro

      Bestseller

      Get Live Filters, Maps, DataTables, the Advanced Elementor Widget and every other Pro feature to build the app your process needs.

    • GravityView

      GravityView

      Trending

      Display Gravity Forms entries on the frontend of your site and build powerful web applications.

    • GravityImport

      GravityImport

      Trending

      Import entries from CSV files into Gravity Forms to transfer data, create new forms, or update existing entries.

    • GravityEdit

      GravityEdit

      Quickly edit Gravity Forms entries inline to save time, reduce clicks, and streamline your workflow.

    • GravityCharts

      GravityCharts

      Trending

      Turn Gravity Forms entries into interactive charts and graphs.

    • GravityActions

      GravityActions

      Update multiple Gravity Forms entries at once, send bulk emails, and streamline your workflow.

    • GravityCalendar

      GravityCalendar

      Turn Gravity Forms entries into dynamic calendars to showcase events, schedules, appointments, and more.

    • GravityExport

      GravityExport

      Export Gravity Forms entries to Excel, CSV, PDF, or Google Sheets, then share them with secure links or deliver them to cloud storage on a schedule.

    • GravityMath

      GravityMath

      Perform advanced calculations on Gravity Forms entries to display totals, averages, or build custom calculators.

    • GravityRevisions

      GravityRevisions

      Track, compare, and restore changes made to Gravity Forms forms and entries with a full version history.

    • GravityMigrate

      GravityMigrate

      Migrate all Gravity Forms data between sites, including forms, entries, settings, Views, feeds, and file uploads, and import forms from other form plugins.

    • GravityBoard

      GravityBoard

      Manage projects with collaborative project management. Coordinate with your team and streamline your workflows.

    • GravitySearch

      GravitySearch

      Search Gravity Forms entries across every form from one screen.

    View All Products

    GravityKit All Access

    Our complete Kit of essential tools for extending and enhancing Gravity Forms—everything you need to build powerful web apps and workflows.

    Learn more
  • Ideal For

    • Nonprofits
    • Web Agencies
    • Education
    • Developers
    • Small Businesses
    • Startups
    Explore All Use Cases

    Case studies

    • Be There Local
    • Killer Shorts
    • West Fork Schools
    • Princeton University
    • BrightLeaf Giving
    • Jacksonville Port Authority
    • National Severe Storms Lab
    • Leadpal
    View All Case Studies

    How to build...

    • Client Portal
    • AI-Built Directory
    • Conference Website
    • WordPress CRM
    • Admin Dashboard
    • Inventory Management
    • Vendor Portal
    • Document Library
    View All Guides
  • Resources

    • Blog
    • Case studies
    • Newsletter
    • GravityKit vs competitors
    • Live Demos
    • Documentation
    • Developer docs
    • GravityKit Academy

    ultimate guides

    • How to use Gravity Forms
    • Editing Gravity Forms entries
    • Importing Gravity Forms entries
    • Exporting Gravity Forms entries
    • Displaying Gravity Forms entries
    • Gravity Forms conditional logic
    • Gravity Forms calculations
    View More Articles
  • Support
  • Pricing
0 items

Search

Results appear automatically as you type.
Loading results…

results found matching

    Sign in
    Buy

    Docs

    • Docs Home

    Gravity Forms Add-Ons

    • GravityView
    • GravityActions
    • GravityBoard
    • GravityCalendar
    • GravityCharts
    • GravityEdit
    • GravityExport
    • GravityImport
    • GravityMath
    • GravityRevisions
    • GravitySearch
    • GF Widget for Elementor
    • GF Dynamic Lookup
    • GF Entry Tags
    • GF Event Field
    • GravityExport Lite
    • GF Zero Spam
    • GravityMigrate

    GravityView

    • Getting Started
    • View Setup
    • FAQ
    • Pre-Sale
    • Advanced
    • Common Problems
    • Customizing Your Views
    • Edit Entry
    • Entry Approval
    • Filter and Sort Results
    • Gravity Forms
    • Merge Tags
    • Roles and Capabilities
    • Search
    • Shortcodes
    • View Settings
    • WordPress Posts

    General Help

    • Account, Invoices, and Billing
    • License Related
    • Plugins and Settings
    • Agency accounts
    • Contact
    • Docs Home
    • Gravity Forms Add-Ons

      • GravityView
      • GravityActions
      • GravityBoard
      • GravityCalendar
      • GravityCharts
      • GravityEdit
      • GravityExport
      • GravityImport
      • GravityMath
      • GravityRevisions
      • GravitySearch
      • GF Widget for Elementor
      • GF Dynamic Lookup
      • GF Entry Tags
      • GF Event Field
      • GravityExport Lite
      • GF Zero Spam
      • GravityMigrate
    • GravityView

      • Getting Started
      • View Setup
      • FAQ
      • Pre-Sale
      • Advanced
      • Common Problems
      • Customizing Your Views
      • Edit Entry
      • Entry Approval
      • Filter and Sort Results
      • Gravity Forms
      • Merge Tags
      • Roles and Capabilities
      • Search
      • Shortcodes
      • View Settings
      • WordPress Posts
    • General Help

      • Account, Invoices, and Billing
      • License Related
      • Plugins and Settings
      • Agency accounts
    • Contact

    GravityView Pro

      • Selling listings and featured spots that end on their own
      • Showing entries added since a user’s last login
      • Showing only paid entries: filtering a View by payment status
      • (Advanced) What changed from 1.x to 2.0?
      • Advanced Filter shows no entries, or fewer than expected
      • Field Conditional Logic
      • Field Conditional Logic doesn’t hide entries
      • Filtering a View using the Assignee field from Gravity Flow
      • Filtering by entry approval status
      • Filtering by the week of the year
      • Getting started with Advanced Filtering
      • How to show only entries created by the currently logged-in user
      • How to show only entries from the current day, week, month, or year
      • I can’t type a relative date in an Advanced Filter condition
      • Showing only entries created by users with a certain role
      • The :disabled_admin merge tag modifier
      • Using Advanced Filtering with Multiple Forms
      • Why can’t I see the Fields dropdown?
      • Change the search parameter from “letter” to something else
      • Configuring the A-Z Filters Widget
      • The “Use this field to filter entries” setting
      • Choosing which fields show in the dashboard and on your website
      • Dashboard Views: Display the View title
      • Dashboard Views: How to modify the menu icon
      • Dashboard Views: The included CSS Frameworks
      • Getting started with Dashboard Views
      • Controlling column widths and pinning columns in DataTables
      • Fixing a DataTables View that shows “This table could not load” or stays on “Loading data…”
      • Adding a company logo to DataTables PDF exports
      • Buttons (DataTables Setting)
      • Changing the style of the export buttons in DataTables
      • Customizing DataTables options in GravityView
      • DataTables Data Processing Mode (AJAX or Preloaded)
      • DataTables Field Filters
      • DataTables: is it possible to exclude fields from printing?
      • Displaying a DataTables View from a theme template
      • Enable Auto-Update (DataTables Setting)
      • Getting started with the DataTables Layout
      • Grouping rows by common field values
      • How a DataTables View sorts its entries
      • How to change the separator in DataTables CSV exports
      • How to customize the “Loading data” text
      • How to customize the Excel export file name
      • How to disable the “Loading data” message
      • How to translate the DataTables script
      • Is there a way to style the PDF on DataTables?
      • Making links clickable in DataTables PDF exports
      • Multi-sorting columns in DataTables
      • My column widths aren’t being respected when using Responsive Tables
      • My DataTables View is not sorting properly
      • Removing HTML tags from DataTables Excel exports
      • Removing the striped background from DataTables
      • Responsive (DataTables Setting)
      • Scroller (DataTables Setting)
      • Showing images and URLs in DataTables printouts
      • Showing images in DataTables PDF exports
      • Showing URLs in DataTables Excel exports
      • The Save Table State setting in DataTables
      • The text inside a column is going out of the screen
      • DIY Layout: Remove the “Go back” link
      • DIY Version 2.2 changes to HTML output
      • Getting started with the DIY Layout
      • How do I add additional container tag default options?
      • Showing Before and After Content even when field is empty
      • Getting started with the Advanced Elementor Widget for GravityView
      • Understanding the “Show Debug Output” option
      • How Move Featured Entries to Top works
      • Rank featured listings and sell featured spots
      • Getting started with Featured Entries
      • How to always display featured entries, regardless of search results
      • How to feature an entry using PHP
      • How to visually highlight featured entries in the Recent Entries widget
      • Show only featured entries in the Recent Entries widget
      • Style featured entries with CSS
      • Allowing users to delete entries when using a Magic Link
      • Fields not appearing in Edit Entry when using Magic Links?
      • Getting started with Magic Links
      • Magic Links filters
      • Preserving Magic Links parameters on password-protected Views
      • The {gv_magic_link} merge tag
      • Enabling 3D maps in the Maps Layout
      • My map won’t zoom in past a certain level
      • Showing distance and sorting by distance in radius search results
      • About custom map icons or markers
      • About GravityView Maps geocoding
      • Adding your Google Maps API Key into Divi
      • Adding your Google Maps API Key into Premium Addons for Elementor
      • Adding your Google Maps API Key into Ultimate Addons for Elementor
      • Associating a custom map pin icon (marker) with a field value
      • Can I use Maps to autocomplete addresses on my form?
      • Changing the address that GravityView Maps geocodes
      • Configuring info boxes in GravityView Maps
      • Enabling autocomplete for the Gravity Forms Address field
      • Enabling the REST API access
      • Error: Google Maps API warning: NoApiKeys
      • Error: This page can’t load Google Maps correctly
      • Fixing a conflict with UberMenu plugin
      • Getting started with the Maps Layout
      • Google Maps Javascript API Error “RefererNotAllowedMapError”
      • Granting Google Cloud Access to Support
      • How can I make the marker link to open in a new tab?
      • How can I pull the address from a field type that is not Address?
      • How do I display only the Map? I don’t want to display the entries under the Map.
      • How to enable and configure map marker clustering
      • How to enable radius search
      • How to hide map elements using CSS
      • How to override geocoding coordinates
      • How to show markers from multiple address fields on a map
      • Is it possible to style the map?
      • My map is gray and there are no entry markers
      • Radius Search: Request Location
      • Setting up Google Maps API keys for GravityView Maps
      • Support for OpenStreetMap or other map providers
      • Using a latitude and longitude fields to position the map markers
      • What are “Search as map moves” and “Redo search in map”?
      • Why aren’t some of my entries showing up on the map?
      • [Advanced] How to modify Ratings & Reviews entry comment titles
      • Changing the star titles shown on hover
      • Creating a review/voting system by embedding a form into a single entry (short)
      • Getting started with Ratings & Reviews
      • How to disable email notifications for reviews
      • Issue: GravityView Single Entry page only shows “Leave a Reply”
      • Ratings & Reviews Anonymous Reviews
      • Ratings & Reviews Hooks
      • Ratings & Reviews Merge Tags
      • Keeping Views with Prevent Direct Access out of XML sitemaps
      • Getting started with Social Sharing & SEO
      • Setting up SEO for Views with Yoast SEO
      • Setting up sharing buttons with JetPack
      • Getting started with PDF for GravityView
      • Using unions in Multiple Forms
      • Getting started with Multiple Forms
      • How to join a Nested Forms parent form to its child form
      • I don’t see the option to join multiple forms
      • Known limitations of Multiple Forms
      • Multiple Forms: How the “Strict Entry Match” setting works
      • Multiple Forms: Searching entries
      • Using Advanced Filtering with Multiple Forms
      • Why does my View show the same entry more than once?
      • Adding Live Filters to a View
      • Getting started with Connected Views
      • Using the Connections Map
      • Setting an editing deadline with Edit Window
    • Home
    • Docs
    • GravityView Pro
    • DIY Layout
    • Getting started with the DIY Layout

    Getting started with the DIY Layout

    Estimated reading: 7 minutes

    Updated on November 12, 2026

    The DIY Layout gives you control of the HTML around each field in a View. Every field can have a tag that wraps its value, and every field except Custom Content can also have your own HTML before and after it. Your theme’s CSS, or the View’s Custom CSS, then gives the View its look.

    Note: The DIY Layout is included with GravityView Pro and the GravityKit All Access Pass.

    On a GravityView + Extensions (Legacy) license, the DIY Layout is a separate plugin. About the “GravityView + Extensions (Legacy)” license shows how to install it.

    Turning the DIY Layout on or off #

    The DIY Layout is built into GravityView Pro, so there is nothing to install. To turn it off or back on:

    1. Go to Plugins and click Features in the GravityView Pro row.
    2. Click Turn off or Turn on in the DIY Layout row.

    While the separate DIY Layout plugin is active, it runs instead of the built-in copy. Moving from separate extensions to GravityView Pro explains how to remove it.

    Creating a View with the DIY Layout #

    1. Go to GravityKit, then New View.
    2. Type a name for the View, and choose your form in the Data Source box.
    3. Under Choose a View Type, click Select on the DIY card.
    The Choose a View Type box on the New View screen, with the Table, List, Layout Builder, Map, DataTables Table and DIY cards, and the DIY card outlined in red
    1. On the Multiple Entries Layout tab, click Add Field under Entries Fields and choose a field. Repeat for each field you want to show.
    2. Click Publish.

    A new View has Show only approved entries turned on in its View Settings tab. If the View shows no entries, Why View entries may not be showing up explains how to approve them.

    DIY prints no field labels on the page. Each field’s Admin Label names the field in the View editor only.

    Wrapping a field in your own HTML #

    Click the gear icon on a field to open its settings. Under Display, these settings shape the field’s HTML:

    • Before Output: HTML and merge tags printed before the field, outside the Container Tag.
    • Container Tag: the HTML tag that wraps the field’s value, from DIV, BLOCKQUOTE, PRE, H1 to H4, and P, or None for no wrapper. An Address field also offers ADDRESS. The field’s Custom CSS Class, under Advanced, goes on this tag.
    • After Output: HTML and merge tags printed after the field, outside the Container Tag.

    Example: a card for each teacher

    A pottery studio lists its teachers from a form with a Name field and a Specialty field. The Name field opens each card, and the Specialty field closes it, with these settings:

    SettingNameSpecialty
    Before Output<article class="teacher-card"><p class="teacher-meta"><span>Specialty: </span>
    Container TagH3None
    After OutputLeave empty</p></article>
    Custom CSS Classteacher-nameLeave empty
    1. Open the Name field’s settings, enter its values from the table, and click Close.
    2. Do the same for the Specialty field.
    Specialty Settings in a DIY View: Before Output opens a paragraph with a Specialty label, Container Tag is set to None, and After Output closes the paragraph and the article
    1. Click Update.

    Each entry now prints this HTML:

    <article class="teacher-card">
      <h3 class="teacher-name gv-field-205-1">Maria Lindqvist</h3>
      <p class="teacher-meta"><span>Specialty: </span>Wheel throwing</p>
    </article>

    On the Edit Entry Layout tab, DIY adds only a Container Tag, and only to the Custom Content field.

    What to watch for

    • When a field is empty, its Before Output and After Output are left out too. If a card opens in one field and closes in another, an empty field leaves the card open, so put that HTML on fields that always have a value.
    • Spaces at the start and end of Before Output and After Output are removed. To keep a space, put it inside a tag, as in <span>Specialty: </span>.
    • On a page where the View is embedded, shortcodes in Before Output and After Output print as plain text. To place a shortcode, add a Custom Content field, which runs shortcodes and has its own Container Tag.
    • Typing an opening tag such as <div> into either box adds its closing tag for you, and typing </ gives </>. Delete what the box added, or paste your HTML in, which keeps it as written.
    • A tag opened in one box and closed in another gets a red mark in both boxes. The View still saves and prints the HTML as written.

    Styling the View with CSS #

    On the Multiple Entries page, the DIY Layout wraps the entries in a section element with the class gv-entries. The section starts with a heading, “Results”, that has the class screen-reader-text, so it doesn’t show on the page. With the teacher cards above, the View prints this HTML:

    <div class="gv-diy-container gv-diy-multiple-container gv-container
                gv-container-963 gv-themed gv-theme-vantage">
        <section class="gv-entries" role="region">
            <h2 class="gv-entries-title screen-reader-text">Results</h2>
            <div class="gv-diy-view">
                <article class="teacher-card">…</article>
            </div>
            <div class="gv-diy-view">
                <article class="teacher-card">…</article>
            </div>
        </section>
    </div>

    Style your own classes, such as .teacher-card, or reach the entries with a descendant selector, such as .gv-diy-multiple-container .gv-diy-view. A child selector such as .gv-diy-multiple-container > .gv-diy-view matches nothing, because the section is between them.

    The hidden heading is the section’s first child, so :first-child never matches an entry. To pick entries by position, use :first-of-type and :nth-of-type().

    Showing the cards in columns

    1. In the View’s Settings box, click Styles. With the Vantage theme selected, choose the number of columns under Columns.
    The Styles tab of a View's Settings box with the Vantage theme selected and the Columns setting outlined in red, set to 3
    1. Click Custom Code and add your CSS to the Custom CSS box. This CSS gives each teacher card a border and a light background:
    .teacher-card {
      padding: 1.5rem;
      border: 1px solid #d5e0de;
      border-radius: 12px;
      background: #f6f9f8;
    }
    
    .teacher-name {
      margin: 0 0 0.5rem;
    }
    
    .teacher-meta span {
      font-weight: 600;
    }
    
    /* Hide the line the Vantage theme draws between entries. */
    .gv-diy-multiple-container {
      --gv-color-row-divider: transparent;
    }
    1. Click Update.
    A pottery studio's Meet our teachers page with six teacher cards in three columns, each with the teacher's name and a bold Specialty label, such as Maria Lindqvist, Specialty: Wheel throwing
    • On the Legacy theme, use the DIY CSS in How to display GravityView entries in a grid to show the entries in columns.
    • To look up a class the DIY Layout prints, see the GravityView CSS guide.
    • If the entries show in one column after an update, see Entries show in one column after updating GravityView.

    Changing the DIY templates #

    The HTML around the entries, such as the gv-diy-view wrapper of each entry, comes from these DIY template files in GravityView Pro:

    • Multiple Entries page: wp-content/plugins/gravityview/pro/features/diy/templates/views/diy.php
    • Single Entry page: wp-content/plugins/gravityview/pro/features/diy/templates/entries/diy.php

    To change one, override it in your theme. Copy it into a gravityview folder in your theme, inside the same subfolder, such as wp-content/themes/your-theme/gravityview/views/diy.php. GravityView then loads your copy instead.

    Still stuck?

    How can we help?

    "*" indicates required fields

    This field is for validation purposes and should be left unchanged.
    Replies will go to this email.
    How can we help?*
    My pre-sale question is related to...*
    My WordPress skills are....*
    My Gravity Forms skills are...*
    You will be shown articles from our documentation.
    Vous pouvez nous écrire dans votre langue maternelle si c’est plus facile pour vous—nous nous occuperons de la traduction!
    Puedes escribirnos en tu idioma nativo si te resulta más fácil; ¡nosotros nos encargamos de la traducción!
    Sie können uns in Ihrer Muttersprache schreiben, wenn das für Sie einfacher ist – wir kümmern uns um die Übersetzung!
    U kunt ons in uw moedertaal schrijven als dat gemakkelijker voor u is — wij zorgen voor de vertaling!
    Du kan skrive til oss på ditt morsmål hvis det er enklere for deg — vi tar oss av oversettelsen!
    Du kan skriva till oss på ditt modersmål om det är lättare för dig — vi tar hand om översättningen!
    Você pode nos escrever em seu idioma nativo se for mais fácil para você — nós cuidaremos da tradução!
    Puoi scriverci nella tua lingua madre se ti è più facile — penseremo noi alla traduzione!
    Please provide as much detail as you're able; this helps us provide you with faster support.
    Drop files here or
    Accepted file types: jpg, jpeg, gif, png, tiff, pdf, bmp, zip, json, csv, xls, xlsx, Max. file size: 256 MB.
      Get better at Gravity Forms every Friday

      Was this page helpful?

      Table Of Contents
      • Turning the DIY Layout on or off
      • Creating a View with the DIY Layout
      • Wrapping a field in your own HTML
      • Styling the View with CSS
      • Changing the DIY templates
      GravityKit
      • How to Build It
      • GravityKit vs competitors
      • Pricing
      • Products
      • Our Team
      • Our Values
      • Work With Us
      • Partner Directory
      • Coupons
      Support
      • Support
      • Contact
      • Documentation
      • Scope of Support
      • Brand Guidelines
      • Brand Kit
      • Privacy Policy
      • Terms of Service (“Terms”)
      I am a...
      • Nonprofit
      • Web agency
      • Small business owner
      • Web developer
      • Educational institution
      • WordPress freelancer
      • Startup founder
      • One-person agency
      Get notified of updates.

      We’re constantly improving GravityKit. Fill out your email below and we’ll notify you anytime major updates drop.

      See past editions
      • Facebook
      • Twitter
      • Mastodon
      GravityKit is a Gravity Forms Certified Developer.

      Copyright © 2026, Katz Web Services, Inc.

      GravityKit and GravityView are registered trademarks of Katz Web Services, Inc.