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

      GravityView

      Bestseller

      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

      GravityView

      Bestseller

      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

      • Embedding a View on a page or post
      • Getting Started: Setting up Your First View
      • Changing the form a View uses
      • Embedding Views in Divi, Beaver Builder, and Elementor
      • Frontend bulk actions in GravityView
      • How to show a single entry without the Multiple Entries page
      • “How To” Guides and Tutorials
      • Activating your license
      • Adding a Print button to the Single Entry page
      • Adding a View to a page using Visual Composer
      • Adding Views to WordPress menus
      • Changing the Single Entry title
      • Comparing GravityView’s View layouts
      • Configuring Delete Entry
      • Configuring the Edit Entry screen
      • Creating an image gallery (displaying images in a grid)
      • Duplicating a Gravity Forms entry from the backend of your site
      • Duplicating a Gravity Forms entry from the frontend of your site
      • Duplicating or copying a View
      • Dynamic Widget Placement
      • Embedding Single Entries in a Post or Page
      • Embedding Views, entries and fields using blocks
      • Enable Enhanced Security: the secret attribute for shortcodes
      • Getting Started: Adding Fields to the Multiple Entries and Single Entry Pages
      • Getting started: choosing a form and a View layout
      • Hiding the Approve/Reject Entry column
      • How to add a Gravity Forms widget to GravityView
      • How to add a PDF download link to your View
      • How to add a PDF download link to your View using Gravity PDF
      • How to embed a View inside another View to show related entries
      • Importing and Exporting configured Views
      • Installing GravityView
      • Linking to a Single Entry
      • Modifying the Default View Settings
      • Opening and editing entry details in a lightbox (modal/popup)
      • Redirecting to the Multiple Entries screen after editing an Entry
      • Removing Theme Navigation Links from Views
      • The Entry Notes field
      • The Layout Builder (how and when to use it)
      • The Recent Entries Widget
      • The View Settings Meta Box
      • The Views list on the dashboard
      • Understanding the “No Entries Behavior” setting in GravityView
      • User Edit: Allowing Users to Edit Their Own Entries
      • Using an Admin Label for Custom Content fields
      • Using the Custom Content Field
      • What are form presets?
      • What are View widgets useful for?
      • Working with Field Labels (column headings)
      • Are Views responsive on mobile devices?
      • Beginner guide: Merge Tags vs shortcodes
      • Can I display multiple Views on the same page?
      • Can I duplicate an entry from a View?
      • Can I update a WordPress user account using GravityView?
      • Can I use GravityView to edit Custom Post Types?
      • Can we display entries from other websites?
      • Difference between using Custom Content as a Widget or as a Field
      • Does GravityView support GP Nested Forms (Gravity Wiz Perk)?
      • Does GravityView support Gutenberg?
      • Does GravityView support the Gravity Forms Dropbox add-on?
      • Does GravityView work with Ajax?
      • Does GravityView work with WooCommerce?
      • Does GravityView work with workflows made by Gravity Flow
      • Does my GravityKit subscription include Gravity Forms?
      • Does the Search Bar support operators like OR or AND?
      • How does GravityView know who can edit the entry?
      • How does GravityView work with Gravity Forms “Save and Continue”?
      • How To Display Full-Width Widgets in the Bottom Widget Area
      • Is Gravity Forms the same thing as GravityView?
      • Is GravityView compatible with WordPress Multisite?
      • Is it possible to display the field description on a View?
      • Is it possible to do date comparison with [gvlogic]?
      • Is it possible to edit Credit Card field data?
      • Is it possible to output the save and continue links from a form that hasn’t been submitted yet?
      • Is it possible to redirect the user to a specific page after deleting an entry?
      • Security false positive: StandalonePHPEnkoder.php
      • What are the existing layout options to create a View?
      • What is this “Grant Support Access” menu on GravityView?
      • Which Post Fields are editable?
      • Will GravityView stop working if I don’t renew?
      • Do I need to create an account before purchasing?
      • Does GravityView work with Gravity Forms 3?
      • Can I create admin pages with GravityView?
      • Can I upgrade my license later?
      • Does GravityView Support Gravity Forms Survey Add-On?
      • Does GravityView support Gutenberg?
      • Is Gravity Forms the same thing as GravityView?
      • Is GravityView compatible with WordPress Multisite?
      • Is there a free trial for GravityView?
      • Which Gravity Forms license do I need?
      • Creating Views with AI using the GravityKit MCP
      • How to change where the Go Back link takes visitors
      • How to redirect members to their own profile entry after login
      • “Encrypt Email Address” is checked, but emails are still readable
      • “Claim Entry” functionality with GravityView and Gravity Flow
      • About GravityView Caching
      • Adding custom CSS classes and HTML IDs to Layout Builder rows
      • Calculating a person’s age based on a date field
      • Can I integrate with Paid Memberships Pro Membership Directory Add On?
      • Change the Delete Entry mode from “Delete” to “Trash”
      • Changing the wording of a GravityKit translation
      • Completely deleting GravityView
      • Customizing View URLs
      • Deprecated and renamed hooks
      • Disable the Custom Content code editor
      • Disable the unfiltered_html capability requirement in GravityView
      • Display a Gravity Forms form when no entry exists with [gventry]
      • Editing product and pricing fields in Edit Entry
      • Enable Views to be hierarchical (parent/child)
      • Exporting all fields to CSV
      • Exporting entries as CSV or TSV from GravityView
      • Fine-tuning search results in GravityView with search modifiers
      • GDPR and GravityView
      • GravityView Hooks: Customizing the Output of a Field
      • GravityView: How to trigger feeds after editing an entry
      • Hidden fields and field visibility on Edit Entry
      • How do I filter by a specific entry ID?
      • How Gravity Forms records the user who created an entry
      • How GravityView Security Works
      • How to change what fields are searched by the Search Bar “Created By” text input.
      • How to Connect GravityView With Zapier Using Uncanny Automator
      • How to disable GravityView email encryption
      • How to disable the Support Port from loading
      • How to display all entries by default
      • How to display the true location of file uploads
      • How to enable logging and use WP Debug in GravityKit
      • How to filter entries by cookie value
      • How to get the ID of the entry on Edit Entry page?
      • How to hide the GravityKit menu
      • How to modify fancybox lightbox settings
      • How to navigate to an HTML anchor after search
      • How to override any translation in GravityView
      • How to require whole numbers in Gravity Forms’ Number field
      • How to search for a whole phrase
      • How to show checkbox fields as comma-separated instead of a bullet list
      • How to stop the Go Back link from clearing the search
      • How to track pageviews for entries using the [gv_pageviews] shortcode
      • How to use the gform_pre_render filter in Edit Entry
      • I want to translate GravityView (or another GravityKit add-on)!
      • Listing entries assigned to a specific user
      • Making calculations using the custom content field
      • Marking an entry “Unread” after it is edited
      • Modifying Search Bar inputs
      • Modifying the Default View Settings
      • Modifying the entries displayed in a View
      • Only show choices in the Search Bar that exist in entries
      • Optimizing Gravity Forms with custom indexes
      • Parent Entry ID and Parent Form ID
      • Preserve the “sub-step” status in Gravity Flow when one or more assignees are changed in GravityView
      • Prevent GravityView from loading its CSS styles
      • REST API Endpoints
      • Restarting a Gravity Flow workflow after editing an entry in GravityView
      • Retrieve Entry Approval Status in GravityView
      • Setting the browser tab title for single entries
      • The GravityView plugin changelog
      • Turning off or changing user account updates in Edit Entry
      • Uninstalling GravityView and removing its data
      • Using [gvlogic] to show or hide content anywhere on your site
      • Using direct file paths for uploaded media in GravityView
      • Using Gravity Forms gf_apply_filters() and gf_do_action() in Gravity Forms development
      • When to use Advanced Filtering vs Field Conditional Logic vs gvlogic
      • WordPress hooks (actions and filters) available for GravityView
      • ‘Bad Request’ or ‘Request Header Too Large’ Error When Editing Entries in GravityView
      • “Cheatin’ Uh?” message is displayed when editing a View
      • “Date Created” field is inaccurate
      • Add Field or Add Widget buttons aren’t working
      • Deleting and reinstalling GravityView
      • Display issues with the Search Bar
      • During installation: “Warning: No such file or directory”
      • Enabling No-Conflict Mode
      • Exporting forms & Views from your site
      • Getting a 404 error when accessing CSV endpoint
      • GravityView Hooks: Customizing the Output of a Field
      • GravityView updates aren’t displaying
      • How to create a new entry based on existing Gravity Forms entry data
      • How to disable Gravity Forms’ Secure File Download Location
      • I get this error when auto-updating the plugin: “Download failed. SSL peer certificate or SSH remote key was not OK”
      • Images on the View are upside down, rotated or flipped
      • Infinite loop recursion
      • Known issue: When editing entries that have conditional calculations, the result may be incorrect
      • Merge tags aren’t visible in a new View
      • My theme is Divi and I can’t see the Search Bar
      • My View widgets are not showing up on my Divi theme
      • Only some users are listed in the Change Entry Creator dropdown
      • Pointing the [gv_entry_link] to a specific page
      • Prices and numbers sort alphabetically
      • Random sorting not working on WP Engine
      • Reasons for the “You are not allowed to view this content.” message
      • ReferenceError: gvGlobals is not defined
      • Removing Theme Navigation Links from Views
      • Reserved URL query parameters
      • Reserved URL Slugs
      • Sorting by Name isn’t working
      • Strange display issues inside the View editor
      • The “Update” button isn’t showing in Edit Entry
      • The GravityView settings menu isn’t visible
      • The Settings box is hidden
      • The Yoast SEO box on a View is missing or shows an error
      • There are other plugin boxes on the Edit View screen
      • View widgets conflict with All in One SEO
      • Visual Composer and GravityView
      • What caching plugin do we recommend? WP Rocket.
      • Why can’t I edit my View?
      • Why is my View slow to load?
      • Why View entries may not be showing up
      • WPML and GravityView
      • You don’t have permission to edit this post.
      • Entries show in one column after updating GravityView
      • Making Table Views accessible to screen readers with row headers
      • [Deprecated] Using the FooBox Lightbox plugin instead of the default Thickbox
      • Adding a link to a column
      • Adding a percent sign (%) to a column
      • Adding Custom CSS classes to fields or widgets
      • Adding custom CSS to your Views
      • Adding custom JavaScript to your Views
      • Adding custom PHP code snippets to your website
      • Adding Disqus comments to Entries
      • Adding pagination to the Single Entry page
      • Adding RTL (right-to-left) text support to a field
      • Are Views responsive on mobile devices?
      • Can I disable the Map It link?
      • Changing image size on the Multiple Entries screen
      • Changing the “Entry Updated. Return to Entry” message
      • Changing the display size of images
      • Changing the Edit Entry page title
      • Changing the page size and orientation of DataTables PDF exports
      • Changing the Single Entry title
      • Changing the View custom post type slug
      • Column widths and text wrapping in Table Views
      • Creating a leaderboard with GravityView
      • Custom single View template not displaying
      • Customizing emails sent by the Entry Notes field
      • Customizing View URLs
      • Disable Wrapping Images with a Link
      • Displaying a form if no entries exist on the View
      • Displaying a List View in a grid (two or more columns)
      • Displaying Edit Entry and Delete Entry links as icons
      • Displaying Fields conditionally
      • Displaying video, audio, and media links as a player using the Custom Content field
      • Enabling Custom CSS Classes for GravityView widgets
      • GravityView CSS guide
      • GravityView Hooks: Customizing the Output of a Field
      • Hiding the “No entries match your request” message
      • How to add row numbers to a View
      • How to change the View layout
      • How to Connect GravityView With Zapier Using Uncanny Automator
      • How to disable the sorting control on one table column?
      • How to display GravityView entries in a grid (or columns)
      • How to display uploaded files as links
      • How to rename the Update and Cancel buttons on the Edit Entry page
      • How to show checkbox fields as comma-separated instead of a bullet list
      • How to stop the Go Back link from clearing the search
      • Make “Map It” links open in a new window
      • Making your table scroll horizontally
      • Modifying Date, Time, or Entry Date field formats
      • Modifying Search Bar inputs
      • Modifying the “Map It” address link
      • Modifying the Default View Settings
      • Modifying the output of the Edit Entry form
      • Modifying the text displayed when there are no entries
      • Only show choices in the Search Bar that exist in entries
      • Overriding GravityView templates
      • Placing two fields side-by-side in the same column
      • Prevent GravityView from loading its CSS styles
      • Prices and numbers sort alphabetically
      • Redirecting to a newly-created Gravity Forms entry
      • Removing column headings from the bottom of the tables
      • Removing Theme Navigation Links from Views
      • Search: Changing the default option in a select (drop down) field
      • Shortening the displayed URL in a Website field
      • Show name fields as initials
      • Showing the label of a Drop Down or Radio Buttons choice in a View
      • Styling the Buttons on the Edit Entry Page
      • Styling the Search Bar widget
      • Supported Themes
      • The View Container <div>
      • Using Page Templates with GravityView
      • What are the existing layout options to create a View?
      • Editing rich text Paragraph fields with Edit Entry and GravityEdit
      • How to send or skip a notification when an entry is edited
      • Letting a role edit and delete other users’ entries in one View
      • ‘Bad Request’ or ‘Request Header Too Large’ Error When Editing Entries in GravityView
      • Changing an entry’s creator from the GravityView Edit Entry page
      • Changing an entry’s creator on the Gravity Forms entry screen
      • Changing the “Entry Updated. Return to Entry” message
      • Changing the Edit Entry page title
      • Choosing where users go after editing an entry
      • Conditional Logic on the Edit Entry page
      • Configuring Delete Entry
      • Configuring the Edit Entry screen
      • Creating a View Editor role
      • Creating an “Edit Your Profile” link
      • Creating an Entry Moderator role
      • Disabling Conditional Logic on the Edit Entry page
      • Displaying Edit Entry and Delete Entry links as icons
      • Edit Entry: Multi-page form editing
      • Editing product and pricing fields in Edit Entry
      • Embedding the Edit Entry form in a page or post
      • GravityView: How to trigger feeds after editing an entry
      • Hidden fields and field visibility on Edit Entry
      • Hiding the Confirm Email field on the Edit Entry page
      • How does GravityView know who can edit the entry?
      • How does GravityView work with Gravity Forms “Save and Continue”?
      • How to get the ID of the entry on Edit Entry page?
      • How to modify the settings for the Post Content edit field
      • How to prevent an approved entry from being edited
      • How to rename the Update and Cancel buttons on the Edit Entry page
      • How to use the gform_pre_render filter in Edit Entry
      • Known issue: When editing entries that have conditional calculations, the result may be incorrect
      • Marking an entry “Unread” after it is edited
      • Modifying the output of the Edit Entry form
      • Redirecting to the Multiple Entries screen after editing an Entry
      • Styling the Buttons on the Edit Entry Page
      • The “Update” button isn’t showing in Edit Entry
      • The Update button on the Edit Entry page is missing
      • Unapproving entries automatically after they’re edited
      • User Edit: Allowing Users to Edit Their Own Entries
      • View Settings: Enable Edit Locking in GravityView
      • Which Post Fields are editable?
      • (Advanced) How to update entry approval status using PHP
      • Can I add an additional status to the approval system?
      • Changing the “You are not allowed to view this content” text when an entry is pending approval
      • Changing the labels of the approval statuses
      • Entry Approval Merge Tags or how to approve an entry via email
      • Front-end entry approval
      • Getting Started: GravityView Entry Approval
      • Hiding the Approve/Reject Entry column
      • How to automatically approve an entry when submitting the form
      • How to prevent an approved entry from being edited
      • How to send email notifications when an entry is approved, disapproved, or the approval status has changed
      • Managing entry approval in the Gravity Forms Entries screen
      • Modifying the CSS of Front-end approval
      • The {approval_status} Merge Tag
      • Unapproving entries automatically after they’re edited
      • Creating an “Edit Your Profile” link
      • Enabling the table column sorting feature
      • Filtering entries by WordPress User Roles
      • Forcing numbers to sort properly
      • How do I filter by a specific entry ID?
      • How to display only entries created today
      • How to display the last submitted entry only
      • Listing entries assigned to a specific user
      • Making entries expire after a certain amount of time
      • Pre-filtering results on a View
      • Random sorting not working on WP Engine
      • Restricting a View to logged-in users or user roles
      • Sort doesn’t work when using Gravity Forms encryption plugins
      • Sorting by multiple columns
      • Sorting results by field value
      • Using relative Start Dates and End Dates
      • View sorting isn’t working
      • Changing or deleting choices in a form that already has entries
      • Adding a Link to the Stripe Customer Portal in GravityView
      • Changing an entry’s creator on the Gravity Forms entry screen
      • Creating a review/voting system by embedding a form into a single entry
      • Disabling the Create a View menu
      • Displaying incomplete or partial entries
      • Duplicating a Gravity Forms entry from the backend of your site
      • File Uploads can’t be included in partial entries
      • How does GravityView work with Gravity Forms “Save and Continue”?
      • How to embed a form for each entry in a View
      • How to require whole numbers in Gravity Forms’ Number field
      • Known issue: When editing entries that have conditional calculations, the result may be incorrect
      • Passing a field value from the View to a form on another page
      • Showing inactive Entries
      • Sort doesn’t work when using Gravity Forms encryption plugins
      • Styling Gravity Forms
      • Using GFChart with GravityView
      • Using shortcodes inside Gravity Forms notifications
      • Why is my form creating WordPress posts?
      • Why you should avoid using List fields in your form
      • Displaying Fields conditionally
      • Entry Approval Merge Tags or how to approve an entry via email
      • GravityView merge tag modifiers
      • Merge Tags
      • Merge tags aren’t visible in a new View
      • Removing the custom content when the merge tag is empty
      • Showing user details with the {created_by} and {user} merge tags
      • The {approval_status} Merge Tag
      • The {current_post} Merge Tag
      • The {date_created} merge tag
      • The {get} merge tag
      • The {gv_entry_link} Merge Tag
      • The {is_starred} Merge Tag
      • The {sequence} Merge Tag
      • Using the {get} Merge Tags with [gvlogic] to display a person's name in a Custom Content widget
      • Letting a role edit and delete other users’ entries in one View
      • Creating a View Editor role
      • Creating an Entry Moderator role
      • Filtering entries by WordPress User Roles
      • GravityView capabilities
      • How to hide the GravityKit menu
      • Modifying capabilities shown in the field “Only visible to…” dropdown
      • Why can’t I edit my View?
      • How to add a multi-select search input for drop-down fields
      • Adding pagination for results (next/previous page links)
      • Changing search form style from horizontal to vertical
      • Changing the format of the search widget’s date picker
      • Configuring the (WordPress) Search Widget
      • Configuring the Search Bar widget
      • Display issues with the Search Bar
      • Does the Search Bar support operators like OR or AND?
      • Fine-tuning search results in GravityView with search modifiers
      • How to hide results and only display them if a search is performed
      • How to search for a whole phrase
      • How to search for an exact match
      • How to stop the Go Back link from clearing the search
      • Linking to search results
      • Only show choices in the Search Bar that exist in entries
      • Search Bar: Why is the state input is showing as a text field?
      • Search: Changing the default option in a select (drop down) field
      • Turning off the Show Search Bar default search field
      • Using a range to search numeric fields
      • Using the Search Bar “Clear” button
      • An Overview of Shortcodes Added by GravityView
      • Displaying Fields conditionally
      • Embedding two shortcodes on the same post or page
      • Highlighting entries about to expire “today”
      • How can I display a list of my Views on my site?
      • How to conditionally display an image or a placeholder
      • How to highlight an entry from a specific date
      • How to prevent an approved entry from being edited
      • How to track pageviews for entries using the [gv_pageviews] shortcode
      • Pointing the [gv_entry_link] to a specific page
      • The [gv_entry_link] shortcode
      • Using [gvlogic] and [gvlogic2] to create "AND" logic
      • Using [gvlogic] to show or hide content anywhere on your site
      • Using shortcodes inside Gravity Forms notifications
      • Using the [gravityview] shortcode
      • Using the [gventry] Shortcode
      • Using the [gvfield] shortcode to embed single field values
      • Using the [gvlogic] shortcode
      • Using the {get} Merge Tags with [gvlogic] to display a person's name in a Custom Content widget
      • Widget shortcodes
      • Themes: styling your Views with Legacy or Vantage
      • Automatically marking Gravity Forms entries as “Read”
      • Choosing where users go after editing an entry
      • Exporting entries as CSV or TSV from GravityView
      • Keeping Views and entries out of search engines
      • Modifying the Default View Settings
      • The Prevent Direct Access setting
      • View Setting: Number of entries per page
      • View Settings: Custom Code
      • View Settings: Enable Edit Locking in GravityView
      • View Settings: Enable Lightbox for Images
      • Can I use GravityView to edit Custom Post Types?
      • How to modify the settings for the Post Content edit field
      • Post Image Meta information: Title, Caption and Description for the Post Image field
      • Removing Theme Navigation Links from Views
      • Which Post Fields are editable?
    • Home
    • Docs
    • GravityView
    • Customizing Your Views
    • GravityView CSS guide

    GravityView CSS guide

    Estimated reading: 81 minutes

    Updated on October 27, 2026

    This guide shows the HTML each GravityView layout prints and the CSS classes you can use to style it. The markup comes from GravityView 3.9 with DataTables 3.14, GravityView Maps 3.12 and the DIY Layout 2.6. To add CSS to one View, see Adding custom CSS to your Views.

    Container wrapper #

    Each View on a page is wrapped in a div with the ID gv-view-{View ID}-{number}. The number counts the copies of that View on the page, so the first copy of View 5 is gv-view-5-1. The wrapper also has a class named after the layout:

    LayoutWrapper class
    Tablegv-template-table
    Listgv-template-list
    Layout Buildergv-template-layout-builder
    DataTablesgv-template-datatables
    Mapsgv-template-map
    DIYNone. The DIY layout puts the wrapper ID on the View container, as DIY layout shows.

    Inside the wrapper are the header widget zone, the View container and the footer widget zone:

    A Table View of staff members with three red outlines: the search bar and page links at the top marked .gv-widgets-header, the table marked .gv-container, and the page links at the bottom marked .gv-widgets-footer
    <div id="gv-view-5-1" class="gv-template-table">
      <div class="gv-grid gv-widgets-header">…</div>
      <div class="gv-table-view gv-table-container gv-table-multiple-container gv-container gv-container-5">
        …
      </div>
      <div class="gv-grid gv-widgets-footer">…</div>
      <input type="hidden" class="gravityview-view-id" value="5">
    </div>

    The View container holds the entries. Each layout’s section below lists its own container classes. Every layout also adds these:

    ClassWhen it is added
    gv-containerAlways.
    gv-container-{View ID}Always, for example gv-container-5.
    gv-container-no-resultsThe View has no entries to show. A DataTables View has it in the page’s HTML until the table loads its entries.
    gv-hiddenHide View data until search is performed is on and nobody has searched yet, or No Entries Behavior is set to Hide the View and there are no entries.
    gv-themed and gv-theme-{theme}The View uses a theme, for example gv-theme-vantage. See Themes: styling your Views with Legacy or Vantage.
    gv-has-mapThe View uses the Maps layout, or has a map widget or a map field.
    Your own classThe class in the View’s CSS Class setting.

    The View Container <div> explains the container in more detail. To change the wrapper’s HTML or the container’s classes with code, see Container filters.

    Entries section #

    GravityView 3.5.0 and later wrap the entries of the Table, List, and Layout Builder layouts in a section element inside the View container. DataTables 3.14.0, the DIY Layout 2.6.0, and GravityView Maps 3.11.0 do the same in their layouts. The section is a labeled region, so screen reader users can jump straight to a View’s entries. It appears on the Multiple Entries page only.

    ClassElementWhat it isSince
    .gv-entriessectionWraps all entries inside the View container. It also has role="region" and a data-gv-entries attribute set to the View’s anchor ID, for example gv-view-47-1.3.5.0
    .gv-entries-titleh2The region’s name, “Results” by default. It also has the screen-reader-text class, so screen readers read it and it stays hidden on screen.3.5.0

    HTML example (List layout):

    <div class="gv-list-container gv-list-multiple-container gv-container gv-container-22">
      <section data-gv-entries="gv-view-22-1" class="gv-entries" role="region" aria-labelledby="gv-view-22-1-entries-label gv-view-22-title">
        <h2 id="gv-view-22-1-entries-label" class="gv-entries-title screen-reader-text">Results</h2>
        <div id="gv_list_5" class="gv-list-view">...</div>
        <div id="gv_list_6" class="gv-list-view">...</div>
      </section>
    </div>

    The section is the only element between the View container and the entries. Keep this in mind when you write layout CSS:

    • On GravityView 3.5.0 and 3.6.x, a grid or flex rule on the container, such as .gv-list-multiple-container { display: grid; }, lays out one item (the section), so every entry lands in the first column. Since 3.7.0, the section has display: contents in Legacy List, Layout Builder, and DIY Views, so the rule reaches the entries again. With the Vantage theme, the section of a List, Layout Builder, or DIY View is the grid, and the View’s Columns setting sets its columns. How to display GravityView entries in a grid has snippets that work with and without the section.
    • A child selector such as .gv-list-multiple-container > .gv-list-view no longer matches. Use a descendant selector (.gv-list-multiple-container .gv-list-view) or include the section (.gv-list-multiple-container > .gv-entries > .gv-list-view).
    • The h2 is positioned off screen (position: absolute), so it does not take a cell in a grid on .gv-entries. It is still the section’s first child, so :first-child and :nth-child() count it. Use :first-of-type and :nth-of-type() to pick entries by position. Leave the h2 in place: removing it makes the View harder to use with a screen reader.
    • In the List, Layout Builder, and DIY layouts, the “No entries” message is inside the section too.

    To change the region’s name, use the gk/gravityview/template/entries/label filter. The section is printed by the gk/gravityview/template/entries/before and gk/gravityview/template/entries/after actions.

    Table layout #

    Multiple entries

    The Table layout shows each entry as a table row, with the field labels as column headers.

    Class hierarchy:

    div#gv-view-{id}-1.gv-template-table
    ├── div.gv-grid.gv-widgets-header (widget zone)
    ├── div.gv-table-view.gv-table-container.gv-table-multiple-container.gv-container.gv-container-{id}
    │   └── section.gv-entries
    │       ├── h2.gv-entries-title.screen-reader-text
    │       └── table.gv-table-view
    │           ├── caption.screen-reader-text
    │           ├── thead > tr > th.gv-field-{form}-{field}
    │           ├── tbody > tr > td.gv-field-{form}-{field}
    │           └── tfoot > tr > th.gv-field-{form}-{field}
    └── div.gv-grid.gv-widgets-footer (widget zone)

    HTML example:

    <div class="gv-table-view gv-table-container gv-table-multiple-container gv-container gv-container-5">
      <section data-gv-entries="gv-view-5-1" class="gv-entries" role="region" aria-labelledby="gv-view-5-1-entries-label gv-view-5-title">
        <h2 id="gv-view-5-1-entries-label" class="gv-entries-title screen-reader-text">Results</h2>
        <table class="gv-table-view">
          <caption class="screen-reader-text">Entries</caption>
          <thead>
            <tr>
              <th id="gv-field-1-id" class="gv-field-1-id" scope="col" data-label="Entry ID">
                <span class="gv-field-label">Entry ID</span>
              </th>
              <th id="gv-field-1-1" class="gv-field-1-1" scope="col" data-label="Name">
                <span class="gv-field-label">Name</span>
              </th>
            </tr>
          </thead>
          <tbody>
            <tr class="alt" data-row="0">
              <td id="gv-field-1-id" class="gv-field-1-id" data-label="Entry ID">12</td>
              <td id="gv-field-1-1" class="gv-field-1-1" data-label="Name">
                <a href="/staff/entry/12/">Noah Jensen</a>
              </td>
            </tr>
            <tr class="" data-row="0">
              <td id="gv-field-1-id" class="gv-field-1-id" data-label="Entry ID">11</td>
              <td id="gv-field-1-1" class="gv-field-1-1" data-label="Name">
                <a href="/staff/entry/11/">Fatima Haddad</a>
              </td>
            </tr>
          </tbody>
          <tfoot>
            <tr>
              <th id="gv-field-1-id" class="gv-field-1-id" scope="col" data-label="Entry ID">
                <span class="gv-field-label">Entry ID</span>
              </th>
              <th id="gv-field-1-1" class="gv-field-1-1" scope="col" data-label="Name">
                <span class="gv-field-label">Name</span>
              </th>
            </tr>
          </tfoot>
        </table>
      </section>
    </div>

    The rows alternate between class="alt" and an empty class. data-row counts the rows within one entry, so it is 0 on every row of a View with one row per entry.

    When the View lets visitors sort by a column, each header label starts with a sort link. The link has no text of its own. Its classes draw the sort icon:

    <th id="gv-field-1-1" class="gv-field-1-1" scope="col" data-label="Name">
      <span class="gv-field-label">
        <a href="/staff/?sort[1]=asc" data-multisort-href="/staff/" class="gv-sort gv-icon-caret-up-down" aria-label="Sort by Name"></a>
        Name
      </span>
    </th>

    On a View that uses the Vantage theme, the wrapper and the container also have gv-themed and gv-theme-vantage:

    <div id="gv-view-5-1" class="gv-themed gv-theme-vantage gv-template-table">
      <div class="gv-table-view gv-table-container gv-table-multiple-container gv-container gv-container-5 gv-themed gv-theme-vantage">

    Vantage’s table styles use .gv-themed table.gv-table-view, so that selector reaches Vantage tables only.

    A field’s Custom CSS Class is added to its <th> and to each of its <td> cells, before the gv-field-{form}-{field} class:

    <th id="gv-field-1-2" class="keep-one-line gv-field-1-2" scope="col" data-label="Job title">
    <td id="gv-field-1-2" class="keep-one-line gv-field-1-2" data-label="Job title">

    Single entry

    The single entry page shows one field per table row, with the label in a <th> and the value in a <td>.

    Key differences:

    • The container has gv-table-single-container in place of gv-table-multiple-container.
    • There is no gv-template-table wrapper.
    • The back link is a nav before the container.
    • The table has the class gv-table-view-content, and each <tr> has the field’s ID and classes.

    HTML example:

    <nav class="gv-back-link" aria-label="Back to entries">
      <a data-viewid="5" href="/staff/">← Go back</a>
    </nav>
    
    <div class="gv-table-view gv-table-container gv-table-single-container gv-container gv-container-5">
      <table class="gv-table-view-content">
        <thead></thead>
        <tbody>
          <tr id="gv-field-1-1" class="gv-field-1-1">
            <th scope="row"><span class="gv-field-label">Name</span></th>
            <td>Aiko Tanaka</td>
          </tr>
          <tr id="gv-field-1-8" class="gv-field-1-8">
            <th scope="row"><span class="gv-field-label">Photo</span></th>
            <td>
              <a class="gravityview-fancybox" href="…/aiko-tanaka.jpg" rel="gv-field-1-8-3">
                <img src="…/aiko-tanaka.jpg" alt="Photo" class="gv-image gv-field-id-8">
              </a>
            </td>
          </tr>
        </tbody>
        <tfoot></tfoot>
      </table>
    </div>

    No results state

    When there are no entries, the message is in one <td> that spans every column:

    <tbody>
      <tr>
        <td colspan="5" class="gv-no-results gv-no-results-text" role="status">
          <p>No entries match your request.</p>
        </td>
      </tr>
    </tbody>

    When No Entries Behavior is Display a Form, the cell has gv-no-results-form in place of gv-no-results-text and holds the form. The List, Layout Builder and DIY layouts print <div> elements instead, as their sections show.

    Table-specific notes

    • At 575.98px wide or less, <thead> and <tfoot> are hidden and each <tr> becomes a block. Each <td> then shows as a row of its own, with its data-label printed before the value through ::before.
    • The gravityview/template/table/entry/class filter changes the class of each <tr> in <tbody>.

    List layout #

    Multiple entries

    The List layout shows each entry as a block with a title, a content area and a footer.

    Class hierarchy:

    div#gv-view-{id}-1.gv-template-list
    ├── div.gv-grid.gv-widgets-header (widget zone)
    ├── div.gv-list-container.gv-list-multiple-container.gv-container.gv-container-{id}
    │   └── section.gv-entries
    │       ├── h2.gv-entries-title.screen-reader-text
    │       └── div#gv_list_{entry ID}.gv-list-view
    │           ├── div.gv-list-view-title
    │           │   ├── h3.gv-field-{form}-{field}
    │           │   └── div.gv-list-view-subtitle > h4
    │           ├── div.gv-grid.gv-list-view-content
    │           │   ├── div.gv-grid-col-1-3.gv-list-view-content-image
    │           │   └── div.gv-grid-col-2-3.gv-list-view-content-description
    │           └── div.gv-grid.gv-list-view-footer
    │               ├── div.gv-grid-col-1-2.gv-left
    │               └── div.gv-grid-col-1-2.gv-right
    └── div.gv-grid.gv-widgets-footer (widget zone)

    HTML example:

    <div class="gv-list-container gv-list-multiple-container gv-container gv-container-6">
      <section data-gv-entries="gv-view-6-1" class="gv-entries" role="region" aria-labelledby="gv-view-6-1-entries-label gv-view-6-title">
        <h2 id="gv-view-6-1-entries-label" class="gv-entries-title screen-reader-text">Results</h2>
    
        <div id="gv_list_12" class="gv-list-view">
          <div class="gv-list-view-title">
            <h3 class="gv-field-1-1">
              <a href="/staff/entry/12/">Noah Jensen</a>
            </h3>
            <div class="gv-list-view-subtitle">
              <h4 id="gv-field-1-2" class="gv-field-1-2">Product designer</h4>
            </div>
          </div>
    
          <div class="gv-grid gv-list-view-content">
            <div class="gv-grid-col-1-3 gv-list-view-content-image">
              <div id="gv-field-1-8" class="gv-field-1-8">
                <a class="gravityview-fancybox" href="…/noah-jensen.jpg" rel="gv-field-1-8-12">
                  <img src="…/noah-jensen.jpg" width="250" alt="Photo" class="gv-image gv-field-id-8">
                </a>
              </div>
            </div>
            <div class="gv-grid-col-2-3 gv-list-view-content-description">
              <div id="gv-field-1-3" class="gv-field-1-3">
                <p>Designs the screens and flows of the customer dashboard.</p>
              </div>
            </div>
          </div>
    
          <div class="gv-grid gv-list-view-footer">
            <div class="gv-grid-col-1-2 gv-left">
              <div id="gv-field-1-4.3" class="gv-field-1-4.3">Copenhagen</div>
            </div>
            <div class="gv-grid-col-1-2 gv-right">
              <div id="gv-field-1-entry_link" class="gv-field-1-entry_link">
                <a href="/staff/entry/12/">View profile</a>
              </div>
            </div>
          </div>
        </div>
    
      </section>
    </div>

    Single entry

    Key differences:

    • The container has gv-list-single-container.
    • There is no gv-template-list wrapper.
    • The back link is a nav and the first thing inside the container.
    • The title is plain text, without a link.
    • The content area has no gv-grid class.
    • There is no footer zone.
    • Fields with Show Label on start with span.gv-field-label.

    HTML example:

    <div class="gv-list-container gv-list-single-container gv-container gv-container-6">
      <nav class="gv-back-link" aria-label="Back to entries">
        <a data-viewid="6" href="/staff/">← Go back</a>
      </nav>
    
      <div id="gv_list_3" class="gv-list-view">
        <div class="gv-list-view-title">
          <h3 class="gv-field-1-1">Aiko Tanaka</h3>
          <div class="gv-list-view-subtitle">
            <h4 id="gv-field-1-2" class="gv-field-1-2">Account executive</h4>
          </div>
        </div>
    
        <div class="gv-list-view-content">
          <div class="gv-list-view-content-image gv-grid-col-1-3">
            <div id="gv-field-1-8" class="gv-field-1-8">…</div>
            <div id="gv-field-1-4" class="gv-field-1-4">
              1-7-1 Konan<br>Minato, Tokyo 108-0075<br>Japan
            </div>
          </div>
          <div class="gv-list-view-content-description">
            <div id="gv-field-1-3" class="gv-field-1-3">
              <p>Looks after mid-market accounts and runs product demos for new prospects.</p>
            </div>
            <div id="gv-field-1-6" class="gv-field-1-6">
              <span class="gv-field-label">Email</span>
              <p><a href="mailto:aiko.tanaka@example.com">aiko.tanaka@example.com</a></p>
            </div>
          </div>
        </div>
      </div>
    </div>

    No results state

    <div class="gv-list-view gv-no-results gv-no-results-text" role="status">
      <div class="gv-list-view-title">
        <h3><p>No entries match your request.</p></h3>
      </div>
    </div>

    This div is inside the gv-entries section. With Display a Form, it has gv-no-results-form in place of gv-no-results-text.

    The gravityview/template/list/entry/class filter changes the class of each entry’s div.

    Layout Builder layout #

    Multiple entries

    The Layout Builder prints the rows and columns you set up in the View editor. Each column is a gv-grid-col-* element with a position class (left, right or none), and each field’s value is in a gv-grid-value element.

    Class hierarchy (a row with a two-thirds and a one-third column, then a full-width row):

    div#gv-view-{id}-1.gv-template-layout-builder
    ├── div.gv-grid.gv-widgets-header (widget zone)
    ├── div.gv-layout-builder-container.gv-layout-builder-multiple-container.gv-container.gv-container-{id}
    │   └── section.gv-entries
    │       ├── h2.gv-entries-title.screen-reader-text
    │       └── div.gv-layout-builder-view.gv-layout-builder-view--entry.gv-grid
    │           ├── div.gv-grid-row
    │           │   ├── div.gv-grid-col-2-3.left
    │           │   │   └── div.gv-field-{form}-{field}
    │           │   │       └── div.gv-grid-value
    │           │   └── div.gv-grid-col-1-3.right
    │           │       └── div.gv-field-{form}-{field}
    │           │           └── div.gv-grid-value
    │           └── div.gv-grid-row
    │               └── div.gv-grid-col-1-1
    │                   └── div.gv-field-{form}-{field}
    │                       └── div.gv-grid-value
    └── div.gv-grid.gv-widgets-footer (widget zone)

    HTML example:

    <div class="gv-layout-builder-container gv-layout-builder-multiple-container gv-container gv-container-7">
      <section data-gv-entries="gv-view-7-1" class="gv-entries" role="region" aria-labelledby="gv-view-7-1-entries-label gv-view-7-title">
        <h2 id="gv-view-7-1-entries-label" class="gv-entries-title screen-reader-text">Results</h2>
    
        <div class="gv-layout-builder-view gv-layout-builder-view--entry gv-grid">
          <div class="gv-grid-row">
            <div class="gv-grid-col-2-3 left">
              <div id="gv-field-1-1" class="gv-field-1-1">
                <div class="gv-grid-value">
                  <a href="/staff/entry/12/">Noah Jensen</a>
                </div>
              </div>
            </div>
            <div class="gv-grid-col-1-3 right">
              <div id="gv-field-1-date_created" class="gv-field-1-date_created">
                <div class="gv-grid-value">October 12, 2026</div>
              </div>
            </div>
          </div>
          <div class="gv-grid-row">
            <div class="gv-grid-col-1-1">
              <div id="gv-field-1-4.3" class="gv-field-1-4.3">
                <div class="gv-grid-value">Copenhagen</div>
              </div>
              <div id="gv-field-1-9" class="gv-field-1-9">
                <div class="gv-grid-value">Engineering</div>
              </div>
            </div>
          </div>
        </div>
    
      </section>
    </div>

    The stylesheet has rules for a gv-featured-entry class, but GravityView does not add it to any entry. To add it, for example to starred entries, use the gravityview/template/layout-builder/entry/class filter.

    Single entry

    Key differences:

    • The container has gv-layout-builder-single-container.
    • There is no gv-template-layout-builder wrapper.
    • The back link is a nav and the first thing inside the container.
    • The rows and columns are the ones set up for the single entry page.
    • Fields with Show Label on have a span.gv-field-label before the gv-grid-value element.

    HTML example (one full-width row):

    <div class="gv-layout-builder-container gv-layout-builder-single-container gv-container gv-container-7">
      <nav class="gv-back-link" aria-label="Back to entries">
        <a data-viewid="7" href="/staff/">← Go back</a>
      </nav>
    
      <div class="gv-layout-builder-view gv-layout-builder-view--entry gv-grid">
        <div class="gv-grid-row">
          <div class="gv-grid-col-1-1">
            <div id="gv-field-1-1" class="gv-field-1-1">
              <span class="gv-field-label">Name</span>
              <div class="gv-grid-value">Aiko Tanaka</div>
            </div>
            <div id="gv-field-1-9" class="gv-field-1-9">
              <span class="gv-field-label">Department</span>
              <div class="gv-grid-value">Sales</div>
            </div>
          </div>
        </div>
      </div>
    </div>

    No results state

    <div class="gv-layout-builder-view gv-no-results">
      <div class="gv-layout-builder-view-title">
        <h3><p>No entries match your request.</p></h3>
      </div>
    </div>

    This div is inside the gv-entries section. The Layout Builder adds no gv-no-results-text or gv-no-results-form class.

    The gravityview/template/layout-builder/entry/class filter changes the class of each entry’s div.

    DataTables layout #

    Multiple entries

    The DataTables layout builds on the Table layout with the DataTables JavaScript library. GravityView prints the table, and DataTables then adds its controls around it in the browser, inside a dataTables_wrapper element.

    Class hierarchy (after DataTables has loaded):

    div#gv-view-{id}-1.gv-template-datatables
    ├── div.gv-grid.gv-widgets-header (widget zone)
    └── div#gv-datatables-{id}.gv-datatables-container.gv-container.gv-container-{id}
        └── section.gv-entries
            ├── h2.gv-entries-title.screen-reader-text
            └── div#DataTables_Table_0_wrapper.dataTables_wrapper
                ├── div.dt-buttons (Buttons setting)
                ├── div.dataTables_length (page size menu)
                ├── div.dataTables_processing (the "Loading data…" message)
                ├── table.gv-datatables.display.dataTable
                │   ├── thead > tr > th.gv-field-{form}-{field}.sorting
                │   ├── tbody > tr.odd and tr.even > td
                │   └── tfoot > tr > th.gv-field-{form}-{field}
                ├── div.dataTables_info (entry count)
                └── div.dataTables_paginate.paging_simple_numbers (page links)

    HTML example:

    <div id="gv-datatables-8" class="gv-datatables-container gv-container gv-container-8">
      <section data-gv-entries="gv-view-8-1" class="gv-entries" role="region" aria-labelledby="gv-view-8-1-entries-label gv-view-8-title">
        <h2 id="gv-view-8-1-entries-label" class="gv-entries-title screen-reader-text">Results</h2>
        <div id="DataTables_Table_0_wrapper" class="dataTables_wrapper">
    
          <div class="dt-buttons">
            <button class="dt-button buttons-copy buttons-html5" type="button"><span>Copy</span></button>
            <button class="dt-button buttons-csv buttons-html5" type="button"><span>CSV</span></button>
            <button class="dt-button buttons-excel buttons-html5" type="button"><span>Excel</span></button>
            <button class="dt-button buttons-print" type="button"><span>Print</span></button>
            <button class="dt-button buttons-collection buttons-colvis" type="button" aria-haspopup="dialog">
              <span>Columns</span><span class="dt-down-arrow">▼</span>
            </button>
          </div>
    
          <div id="DataTables_Table_0_length" class="dataTables_length">
            <label>Show <select name="DataTables_Table_0_length">…</select> entries</label>
          </div>
    
          <div id="DataTables_Table_0_processing" class="dataTables_processing" role="status" style="display: none;">
            <div class="dataTables_processing_text">Loading data…</div>
            <div><div></div><div></div><div></div><div></div></div>
          </div>
    
          <table id="DataTables_Table_0" data-viewid="8" class="gv-datatables display dataTable">
            <thead>
              <tr>
                <th id="gv-field-1-1" class="gv-field-1-1 sorting sorting_asc" scope="col" aria-sort="ascending">
                  <span class="gv-field-label">Name</span>
                </th>
                <th id="gv-field-1-9" class="gv-field-1-9 sorting" scope="col">
                  <span class="gv-field-label">Department</span>
                </th>
              </tr>
            </thead>
            <tbody>
              <tr class="odd">
                <td class="sorting_1" data-row-index="0" data-column-index="0">
                  <a href="/staff/entry/3/">Aiko Tanaka</a>
                </td>
                <td data-row-index="0" data-column-index="1">Sales</td>
              </tr>
              <tr class="even">
                <td class="sorting_1" data-row-index="1" data-column-index="0">
                  <a href="/staff/entry/2/">Daniel Reyes</a>
                </td>
                <td data-row-index="1" data-column-index="1">Marketing</td>
              </tr>
            </tbody>
            <tfoot>
              <tr>
                <th id="gv-field-1-1-foot" class="gv-field-1-1" scope="col"><span class="gv-field-label">Name</span></th>
                <th id="gv-field-1-9-foot" class="gv-field-1-9" scope="col"><span class="gv-field-label">Department</span></th>
              </tr>
            </tfoot>
          </table>
    
          <div id="DataTables_Table_0_info" class="dataTables_info" role="status" aria-live="polite">Showing 1 to 10 of 12 entries</div>
    
          <div id="DataTables_Table_0_paginate" class="dataTables_paginate paging_simple_numbers">
            <a class="paginate_button previous disabled">Previous</a>
            <span>
              <a class="paginate_button current" aria-current="page">1</a>
              <a class="paginate_button">2</a>
            </span>
            <a class="paginate_button next">Next</a>
          </div>
    
        </div>
      </section>
    </div>

    When you write selectors for a DataTables View:

    • The body cells have no gv-field-* class. Select a column by its position, for example .gv-datatables tbody td:nth-child(2). A field’s Custom CSS Class is added to its body cells.
    • DataTables adds sorting_1 to the cells of the column the table is sorted by, and sorting_asc or sorting_desc to its header.
    • dataTables_filter, the library’s own search box, appears only when the View has no Search Bar widget.
    • With the Responsive setting on, the table also has nowrap and dtr-inline, plus collapsed while columns are hidden, and the first cell of each row has dtr-control.

    Separating GravityView classes from DataTables library classes

    Comes fromClasses
    GravityViewgv-template-datatables, gv-datatables-container, gv-datatables, gv-field-{form}-{field}, gv-field-label, gv-container, gv-container-{id}, dataTables_processing_text
    DataTables librarydataTables_wrapper, dataTable, display, sorting, sorting_asc, sorting_desc, sorting_1, odd, even, dataTables_length, dataTables_filter, dataTables_processing, dataTables_info, dataTables_paginate, paging_simple_numbers, paginate_button, current, previous, next, disabled
    DataTables Responsive extensionnowrap, dtr-inline, collapsed, dtr-control
    DataTables Buttons extensiondt-buttons, dt-button, buttons-copy, buttons-csv, buttons-excel, buttons-pdf, buttons-print, buttons-html5, buttons-collection, buttons-colvis, dt-down-arrow

    The DataTables styling documentation explains the library’s classes.

    Single entry

    The single entry page of a DataTables View uses the Table layout’s single entry markup, described in Table layout, with no DataTables markup.

    Maps layout #

    GravityView Maps adds the Maps layout, which shows a Google Map with the entries, and a map widget and map field for the other layouts.

    Maps layout structure

    The Maps layout puts the map and the entries in two columns inside the View container. Since GravityView Maps 3.11.0, both columns are inside the gv-entries section. Each entry is a gv-map-view block in the entries column.

    Class hierarchy (map above the entries):

    div#gv-view-{id}-1.gv-template-map
    ├── div.gv-grid.gv-widgets-header (widget zone)
    ├── div.gv-map-container.gv-map-multiple-container.gv-container.gv-grid.gv-container-{id}.gv-has-map
    │   └── section.gv-entries
    │       ├── h2.gv-entries-title.screen-reader-text
    │       ├── div.gv-grid-col-1-1 (map column)
    │       │   └── div.gv-map-sticky-container (when the map is sticky)
    │       │       └── div#gv-map-canvas-view-{id}.gv-map-canvas.gk-map-canvas.gk-multi-entry-map
    │       └── div.gv-grid-col-1-1.gk-map-entries (entries column)
    │           └── div#gv_map_{entry ID}.gv-map-view
    │               ├── div.gv-grid.gv-map-view-main-attr
    │               │   └── div.gv-grid-row
    │               │       ├── div.gv-grid-col-1-3.gv-map-view-image
    │               │       ├── div.gv-grid-col-1-3.gv-map-view-title > h3
    │               │       └── div.gv-grid-col-1-3.gv-map-view-details
    │               ├── div.gv-grid.gv-map-view-middle-container
    │               │   └── div.gv-grid-row > div.gv-grid-col-1-1.gv-map-view-middle
    │               └── div.gv-grid.gv-map-view-footer-container
    │                   └── div.gv-grid-row > div.gv-grid-col-1-1.gv-map-view-footer
    └── div.gv-grid.gv-widgets-footer (widget zone)

    The Map Position setting decides which column comes first and how wide each one is:

    Map PositionMap columnEntries column
    Topgv-grid-col-1-1, firstgv-grid-col-1-1 gk-map-entries
    Bottomgv-grid-col-1-1, lastgv-grid-col-1-1
    Leftgv-grid-col-1-3, firstgv-grid-col-2-3
    Rightgv-grid-col-1-3, lastgv-grid-col-2-3

    To style the entries column in every position, select it by what it holds: .gv-map-multiple-container div:has(> .gv-map-view). How to display GravityView entries in a grid uses this selector to show the entries in columns. It works with and without the gv-entries section.

    Map container

    In the Maps layout, the map is in its own column inside the View container. As a widget, it is in the widget zone where you placed it. Google Maps draws the map inside it with its JavaScript API.

    HTML example (as GravityView prints it):

    <div id="gv-map-canvas-view-10"
         class="gv-map-canvas gk-map-canvas gk-multi-entry-map"
         data-entryid=""
         data-gk-map='{"view_id":10,"entry_id":null,"is_multi_entry_map":true,"markers_data":[…]}'
         data-gk-map-settings='{"MapOptions":{…},"icon":"…","layers":{…}}'>
    </div>

    While the map loads, the GravityView Maps script adds gk-map-visible, gk-map-markers-generated and gk-map-generated to the canvas.

    Single entry

    The single entry page of a Maps View has no map column. Its container has gv-map-single-container and gv-map-container, and the entry has a title, a content area and a footer:

    div.gv-map-single-container.gv-map-container.gv-container.gv-container-{id}.gv-has-map
    ├── p.gv-back-link
    └── div#gv_map_{entry ID}.gv-map-view
        ├── div.gv-map-view-title > h3 (and div.gv-map-view-subtitle)
        ├── div.gv-grid.gv-map-view-content
        │   └── div.gv-grid-row
        │       ├── div.gv-grid-col-1-3.gv-map-view-image
        │       └── div.gv-grid-col-2-3.gv-map-view-description
        └── div.gv-grid.gv-map-view-footer
            └── div.gv-grid-row
                ├── div.gv-grid-col-1-2.gv-left
                └── div.gv-grid-col-1-2.gv-right

    The back link of a Maps View is a p, where the Table, List and Layout Builder layouts print a nav.

    Map widget on other layouts

    When a View on another layout, such as Table, has a map widget or map field, the layout keeps its own markup and its View container gets the gv-has-map class:

    <div class="gv-table-view gv-table-container gv-table-multiple-container gv-container gv-container-31 gv-has-map">
      <section data-gv-entries="gv-view-31-1" class="gv-entries" role="region" aria-labelledby="gv-view-31-1-entries-label gv-view-31-title">
        …
      </section>
    </div>

    Info window structure

    An info window is the popup that opens when a visitor clicks a marker on the map. Its container has one of four modifier classes, set by the info window settings on the View’s Maps tab:

    Modifier classWhen
    gv-infowindow-no-imageNo image is set for the info window.
    gv-infowindow-fullAn image is set and Image Alignment is Top.
    gv-infowindow-leftAn image is set and Image Alignment is Left.
    gv-infowindow-rightAn image is set and Image Alignment is Right.

    Without an image:

    <div class="gv-infowindow-container gv-infowindow-no-image">
      <div class="gv-infowindow-content">
        <h4><a href="/staff/entry/3/" class="gv-infowindow-entry-link">Aiko Tanaka</a></h4>
        <p>1-7-1 Konan, Minato, Tokyo</p>
      </div>
    </div>

    With an image:

    <div class="gv-infowindow-container gv-infowindow-full">
      <div class="gv-infowindow-image">
        <img src="…" alt="Aiko Tanaka">
      </div>
      <div class="gv-infowindow-content">
        <h4><a href="/staff/entry/3/" class="gv-infowindow-entry-link">Aiko Tanaka</a></h4>
        <p>1-7-1 Konan, Minato, Tokyo</p>
      </div>
    </div>

    While the info window loads its content, it holds <div class="gv-infowindow-loading" role="status"></div>.

    Geolocation search

    The geolocation search field filters entries by distance from an address or from the visitor’s location.

    HTML example:

    <div class="gv-search-box gk-search-geolocation-field">
      <input type="hidden" class="gk-maps-search-current-geolocation-has-search" value="0">
      <input type="hidden" class="gk-maps-current-view" value="10">
      <input type="hidden" name="lat" class="gk-maps-search-geolocation-lat" value="0" disabled>
      <input type="hidden" name="long" class="gk-maps-search-geolocation-lng" value="0" disabled>
      <input type="hidden" name="…" class="gk-maps-search-current-geolocation-accuracy" value="0" disabled>
      <input type="hidden" name="…" class="gk-maps-search-current-geolocation-flag" value="0" disabled>
    
      <div class="gv-grid-col-1-1">
        <label for="search-box-filter_geolocation">Geolocation Radius</label>
      </div>
    
      <div class="gv-grid-col-1-1">
        <div class="gk-maps-search-geolocation-address-autocomplete-container">
          <input type="text" id="gk-autocomplete-filter_geolocation" class="gk-maps-search-geolocation-address-autocomplete"
                 name="address_search" value="" placeholder="Enter a location">
          <button type="button" class="gk-maps-search-current-geolocation" title="Click to use current location">
            <svg>…</svg>
          </button>
        </div>
      </div>
    
      <div class="gv-grid-col-1-1">
        <div class="gk-maps-search-geolocation-radius-container">
          <select name="filter_geolocation" id="search-box-filter_geolocation" class="gk-maps-search-current-geolocation-radius">…</select>
          <select name="unit" class="gk-maps-search-current-geolocation-unit">
            <option value="km">Kilometers</option>
            <option value="mi" selected>Miles</option>
          </select>
        </div>
      </div>
    </div>

    The current-location button also has gk-maps-search-current-geolocation-active while the search uses the visitor’s location. When no radius choices are set, the radius is a number input with the same class. When the View allows one unit only, the unit is a hidden input.

    Maps-specific classes

    ClassWhat it is
    gk-map-canvasThe map canvas.
    gk-multi-entry-mapA map that shows several entries.
    gk-map-visible, gk-map-markers-generated, gk-map-generatedAdded by the Maps script as the map loads.
    gv-map-sticky-containerWraps the map when it stays in view while the page scrolls.
    gk-map-entriesThe entries column, when the map is at the top.
    gk-search-geolocation-fieldThe geolocation search field.
    gk-maps-search-geolocation-address-autocompleteThe address input.
    gk-maps-search-current-geolocationThe current-location button.
    gk-maps-search-current-geolocation-radiusThe radius input.
    gk-maps-search-current-geolocation-unitThe unit menu (kilometers or miles).
    gv-infowindow-container, gv-infowindow-image, gv-infowindow-content, gv-infowindow-entry-linkParts of the info window.

    Classes that start with gm-, such as gm-style and gm-fullscreen-control, come from the Google Maps JavaScript API.

    DIY layout #

    The DIY layout prints each field with the markup you set for it and adds no labels, rows or columns of its own. See Getting started with the DIY Layout.

    Multiple entries

    The DIY layout has no gv-template-* wrapper: the View container has the wrapper ID, and the widget zones are before and after it.

    Class hierarchy:

    div.gv-grid.gv-widgets-header (widget zone)
    div#gv-view-{id}-1.gv-diy-container.gv-diy-multiple-container.gv-container.gv-container-{id}
    └── section.gv-entries
        ├── h2.gv-entries-title.screen-reader-text
        └── div#gv_diy_{entry ID}.gv-diy-view
            └── each field: {Before Output}<div class="gv-field-{form}-{field}">value</div>{After Output}
    div.gv-grid.gv-widgets-footer (widget zone)

    Each field’s Container Tag setting wraps its value. The default is div. Choose None to print the value with no wrapper, or another tag such as p, h2 or blockquote. The wrapper has the field’s Custom CSS Class and its gv-field-{form}-{field} class, with any dot taken out: an Address field’s City (field 4.3) gets gv-field-1-43. Before Output and After Output are printed outside the wrapper.

    HTML example:

    <div id="gv-view-11-1" class="gv-diy-container gv-diy-multiple-container gv-container gv-container-11">
      <section data-gv-entries="gv-view-11-1" class="gv-entries" role="region" aria-labelledby="gv-view-11-1-entries-label gv-view-11-title">
        <h2 id="gv-view-11-1-entries-label" class="gv-entries-title screen-reader-text">Results</h2>
    
        <div id="gv_diy_1" class="gv-diy-view">
          <div class="gv-field-1-1"><a href="/staff/entry/1/">Maria Okafor</a></div>
          <div class="staff-email gv-field-1-6">maria.okafor@example.com</div>
          <strong>Phone:</strong><div class="gv-field-1-5">+1 415 555 0142</div><br>
        </div>
    
        <div id="gv_diy_2" class="gv-diy-view">
          …
        </div>
      </section>
    </div>

    Single entry

    Key differences:

    • The back link is a p before the container.
    • The container and the entry are the same element, with the entry’s ID: div#gv_diy_{entry ID}.gv-diy-view.gv-diy-container.gv-diy-single-container.gv-container.gv-container-{id}.

    HTML example:

    <p class="gv-back-link"><a data-viewid="11" href="/staff/">← Go back</a></p>
    
    <div id="gv_diy_3" class="gv-diy-view gv-diy-container gv-diy-single-container gv-container gv-container-11">
      <div class="gv-field-1-1">Aiko Tanaka</div>
      <div class="staff-email gv-field-1-6">aiko.tanaka@example.com</div>
    </div>

    No results state

    <div class="gv-diy-view gv-no-results gv-no-results-text">
      <div class="gv-diy-view-title">
        <h3><p>No entries match your request.</p></h3>
      </div>
    </div>

    In the DIY Layout 2.6.0 and later, this div is inside the gv-entries section, and the View container also gets the gv-container-no-results class.

    Available filters

    The DIY layout has its own filters for the container and the entry wrapper. They are listed in DIY-specific filters.

    Edit Entry #

    The Edit Entry page shows the entry’s form, built with Gravity Forms’ own form markup, inside a GravityView wrapper. The classes of the form itself depend on your Gravity Forms version and form theme. The example below comes from Gravity Forms 3.2 with the Orbital form theme.

    Complete structure

    <div id="gv-view-5-edit-1" class="gv-edit-entry-wrapper gv-container gv-container-5">
    
      <h2 class="gv-edit-entry-title">
        <span>Edit Entry</span>
      </h2>
    
      <div class="gv-notice">Entry Updated. <a href="/staff/entry/2/">Return to Entry</a></div>
    
      <div id="gform_wrapper_1" class="gform_wrapper gform-theme …">
        <form method="post" id="gform_1" enctype="multipart/form-data" action="…">
          <input type="hidden" id="is_gv_edit_entry" name="is_gv_edit_entry" value="…">
    
          <div class="gform-body gform_body">
            <div id="gform_fields_1" class="gform_fields top_label …">
              <!-- One div.gfield or fieldset.gfield per field -->
            </div>
          </div>
    
          <div class="gform-footer gform_footer top_label">
            <div id="publishing-action">
              <input type="submit" id="gform_submit_button_1" name="save" value="Update"
                     class="btn btn-lg button button-large gform_button button-primary gv-button-update">
              <a href="/staff/entry/2/" onclick="history.go(-1); return false;"
                 class="btn btn-sm button button-small gv-button-cancel">Cancel</a>
              <a href="…" onclick="return window.confirm('…')"
                 class="btn btn-sm button button-small alignright pull-right btn-danger gv-button-delete">Delete</a>
              <input type="hidden" name="action" value="update">
            </div>
          </div>
        </form>
      </div>
    </div>

    The gv-notice appears after an update. The Delete link appears when the View lets the user delete the entry.

    Cancel button behavior

    The Cancel link’s onclick goes back as many steps in the browser history as it takes to leave the Edit Entry page: history.go(-1) on the first visit and history.go(-2) after one update. The steps are the number of updates plus one.

    Button classes

    ButtonClasses
    Updatebtn btn-lg button button-large gform_button button-primary gv-button-update
    Cancelbtn btn-sm button button-small gv-button-cancel
    Deletebtn btn-sm button button-small alignright pull-right btn-danger gv-button-delete
    Previous (forms with pages)btn btn-lg button button-large gform_button button-primary gv-button-previous
    Next (forms with pages)btn btn-lg button button-large gform_button button-primary gv-button-next

    Styling the Buttons on the Edit Entry Page has CSS for these buttons.

    Success and error notices

    After an update, GravityView prints a notice between the title and the form:

    <div class="gv-notice">Entry Updated. <a href="/staff/entry/2/">Return to Entry</a></div>

    When a field fails validation, the notice has the gv-error class:

    <div class="gv-notice gv-error">
      <div class="validation_error">There was a problem with your submission. Errors have been highlighted below.</div>
    </div>

    Other errors, such as a user who may not edit the entry, use gv-notice gv-error error.

    Gravity Forms classes

    Because the form comes from Gravity Forms, the column layout and the CSS classes set on fields in the form editor apply on the Edit Entry page too. Gravity Forms lists the classes it supports in its CSS Ready Classes documentation.

    Search Bar widget #

    The Search Bar widget appears in a widget zone of any layout. Its fields are arranged in areas, and each area’s Arrange Fields setting places the fields Stacked (vertical) or Side by side (horizontal).

    Search layout classes

    ClassElementWhen
    gv-widget-searchformAlways.
    gv-search-rowsformAlways.
    gv-is-searchformA search of this View is active, or a search field’s default value is filtering the entries.
    gv-search-widget-areadivEach area of fields.
    gv-search-horizontaldiv.gv-search-widget-areaThe area’s Arrange Fields is Side by side (horizontal). A stacked area has no extra class.
    gv-search-columns-{1 to 8}div.gv-search-widget-areaThe area is side by side and Number of Columns is set to a number.
    gv-search-col-submitdiv.gv-grid-col-*The column that holds the Submit Button.

    A Search Bar that has not been saved since GravityView introduced these area settings keeps its old layout class on the <form>: gv-search-horizontal or gv-search-vertical. Saving the View in the View editor removes it.

    Class hierarchy

    form.gv-widget-search.gv-search-rows
    ├── h2.gv-search-title.screen-reader-text
    ├── div.gv-widget-search-general-search.gv-grid
    │   ├── div.gv-grid-row
    │   │   └── div.gv-grid-col-1-1
    │   │       └── div.gv-search-widget-area.gv-search-horizontal
    │   │           ├── div.gv-search-box.gv-search-field-text.gv-search-field-search_all
    │   │           ├── div.gv-search-box.gv-search-field-select
    │   │           └── fieldset.gv-search-box.gv-search-date.gv-search-field-entry_date
    │   └── div.gv-grid-row
    │       ├── div.gv-grid-col-1-2.gv-search-col-submit
    │       │   └── div.gv-search-widget-area
    │       │       └── div.gv-search-box.gv-search-box-submit
    │       │           ├── a.button.gv-search-clear
    │       │           └── input.button.gv-search-button
    │       └── div.gv-grid-col-1-2
    │           └── div.gv-search-widget-area
    │               └── input[type=hidden][name=mode]
    ├── a#gv-search-advanced-toggle (when there are advanced fields)
    └── div#gv-search-advanced.gv-widget-search-advanced-search.gv-grid (when there are advanced fields)

    Search box types

    Input typeElement and classes
    Textdiv.gv-search-box.gv-search-field-text
    Search Everythingdiv.gv-search-box.gv-search-field-text.gv-search-field-search_all
    Entry IDdiv.gv-search-box.gv-search-field-entry_id
    Selectdiv.gv-search-box.gv-search-field-select
    Select (multiple values)div.gv-search-box.gv-search-field-multiselect
    Checkboxfieldset.gv-search-box.gv-search-field-checkbox
    Checkbox (one choice)div.gv-search-box.gv-search-field-single_checkbox
    Radiofieldset.gv-search-box.gv-search-field-radio
    Linksdiv.gv-search-box.gv-search-field-link.gv-search-box-links
    Date (form field)fieldset.gv-search-box.gv-search-date
    Date range (form field)fieldset.gv-search-box.gv-search-date.gv-search-field-date_range
    Entry Datefieldset.gv-search-box.gv-search-date.gv-search-field-entry_date
    Entry Date rangefieldset.gv-search-box.gv-search-date.gv-search-date-range.gv-search-field-entry_date
    Number rangefieldset.gv-search-box.gv-search-number.gv-search-number-range
    Sliderfieldset.gv-search-box.gv-search-number.gv-search-number-slider
    Chained Selectsfieldset.gv-search-box.gv-search-field-chainedselect

    A date range set to one combined input also has gv-search-date-range--combined. A search field’s Custom CSS Class is added to the same element.

    Since GravityView 3.5.0, fields that hold a group of inputs render as a <fieldset> with a <legend> instead of a <div> with a <label>. Leave the element name off your selectors, for example .gv-search-box in place of div.gv-search-box, so your CSS works on both.

    Buttons

    ButtonElement and classes
    Searchinput.button.gv-search-button, or button.button.gv-search-button when the Submit Button is set to print a <button>
    Cleara.button.gv-search-clear

    Advanced search

    Fields placed in the advanced area are in div#gv-search-advanced.gv-widget-search-advanced-search, shown and hidden by the a#gv-search-advanced-toggle link before it. The area also has gv-search-advanced--open when one of its fields holds a value from the current search.

    HTML example

    <form class="gv-widget-search gv-search-rows" role="search"
          aria-labelledby="gv-search-label-5 gv-view-5-title"
          method="get" action="/staff/#gv-view-5-1"
          data-viewid="5" data-gv-search-mode="any">
    
      <h2 id="gv-search-label-5" class="gv-search-title screen-reader-text">Search</h2>
      <input type="hidden" name="gv_search_view" value="5">
    
      <div class="gv-widget-search-general-search gv-grid">
        <div class="gv-grid-row">
          <div class="gv-grid-col-1-1">
            <div class="gv-search-widget-area gv-search-horizontal">
    
              <div class="gv-search-box gv-search-field-text gv-search-field-search_all">
                <div class="gv-search">
                  <label for="gv_search_5">Search Entries:</label>
                  <p><input type="search" name="gv_search" id="gv_search_5" value="" placeholder=""></p>
                </div>
              </div>
    
              <div class="gv-search-box gv-search-field-select">
                <label for="search-box-filter_9">Department</label>
                <p>
                  <select name="filter_9" id="search-box-filter_9">
                    <option value="" selected="selected">—</option>
                    <option value="Engineering">Engineering</option>
                    <option value="Sales">Sales</option>
                  </select>
                </p>
              </div>
    
              <fieldset class="gv-search-box gv-search-date gv-search-field-entry_date">
                <legend id="gv-entry-date-5-label">Filter by date:</legend>
                <div id="gv-entry-date-5" class="gv-date-picker" data-gv-config="…"></div>
              </fieldset>
    
            </div>
          </div>
        </div>
    
        <div class="gv-grid-row">
          <div class="gv-grid-col-1-2 gv-search-col-submit">
            <div class="gv-search-widget-area">
              <div class="gv-search-box gv-search-box-submit">
                <a href="/staff/" class="button gv-search-clear">Clear</a>
                <input type="submit" class="button gv-search-button" id="gv_search_button_5" value="Search">
              </div>
            </div>
          </div>
          <div class="gv-grid-col-1-2">
            <div class="gv-search-widget-area">
              <input type="hidden" name="mode" value="any">
            </div>
          </div>
        </div>
      </div>
    
    </form>

    The gv_class() function #

    The gv_class() function builds the classes of a field’s container. It is a wrapper for GravityView_API::field_class(). The Table, List, Layout Builder and Maps layouts use it for every field. The DIY layout uses it only for fields with a Container Tag, and DataTables body cells do not use it.

    How it works

    The function puts together the field’s classes in this order:

    1. The field’s Custom CSS Class. Merge Tags in it are replaced with the entry’s values.
    2. The field ID class, in the format gv-field-{form ID}-{field ID}.

    Format pattern

    gv-field-{form_id}-{field_id}

    Concrete examples

    Form IDFieldClass
    1Field 5gv-field-1-5
    3Field 12gv-field-3-12
    1Address field 4, City (4.3)gv-field-1-4.3
    1Address field 4, Country (4.6)gv-field-1-4.6
    1Entry linkgv-field-1-entry_link
    1Date Createdgv-field-1-date_created

    Complex fields (address sub-fields)

    Address, Name and other fields with several inputs have sub-fields with a dot in their IDs, and the dot stays in the class. In CSS, escape the dot with a backslash:

    .gv-field-1-4\.3 {
        font-weight: bold;
    }

    The DIY layout removes the dot instead, so the same field there is .gv-field-1-43.

    Cross-form fields (joins)

    When a field comes from another form than the View’s main form, as in a View that joins forms, the List and Layout Builder layouts add a second class with the field’s own form:

    <div class="gv-field-1-5 gv-field-3-5">
      <!-- Field 5 from form 3, in a View of form 1 -->
    </div>

    The class with the View’s form ID, gv-field-1-5 here, also matches field 5 of the main form, so style the joined field with gv-field-3-5.

    In the Table layout, the column header has both classes, and the body cells have only the field’s own form class, for example gv-field-3-5.

    Merge Tag CSS class conversion

    A Merge Tag in a Custom CSS Class is replaced with the field value, and sanitize_html_class() then keeps only its letters, numbers, - and _.

    For example, the class {Status:8} on an entry whose Status is “Office Manager” becomes OfficeManager, one class.

    Filter hook

    gv_class() has no filter of its own. To change a field container’s class, use gravityview/field_output/context/class, which changes the class GravityView prints in the field’s markup:

    add_filter( 'gravityview/field_output/context/class', function ( $class, $args, $context ) {
        return $class . ' my-custom-class';
    }, 10, 3 );

    In the Table layout, this filter also changes the class of the column headers. It does not reach DIY fields or DataTables body cells.

    Grid system #

    GravityView has its own grid classes, used by the layouts and the widget zones.

    Grid column classes

    ClassWidthWhat it is
    gv-grid100%Grid container
    gv-grid-row100%Grid row
    gv-grid-col-1-1100%Full-width column
    gv-grid-col-1-250%Half-width column
    gv-grid-col-1-333.33%One-third column
    gv-grid-col-2-366.67%Two-thirds column
    gv-grid-col-1-425%Quarter column
    gv-grid-col-1-616.67%One-sixth column
    gv-grid-col-1-812.5%One-eighth column

    These widths apply to Views with the Legacy theme. Views with a theme such as Vantage lay out the same classes with flex and grid rules in their own stylesheet, which also has gv-grid-col-3-4.

    Alignment classes

    ClassWhere
    gv-leftThe left column of a widget zone, and the left footer column of the List layout
    gv-rightThe right column of a widget zone, and the right footer column of the List layout

    Widget zone columns also have left or right, for example gv-grid-col-1-2 left gv-left.

    See also Adding Custom CSS classes to fields or widgets.

    Responsive behavior

    At 480px wide or less, every gv-grid-col-* column is full width. Some layouts stack at wider screens, as Responsive breakpoints shows.

    Other styles #

    Back link

    The single entry page has a back link to the entries. The Table, List, Layout Builder and DataTables layouts print it as a nav:

    <nav class="gv-back-link" aria-label="Back to entries">
      <a data-viewid="5" href="/staff/">← Go back</a>
    </nav>

    The Maps and DIY layouts print it as <p class="gv-back-link">. Select it with .gv-back-link to style both.

    Pagination widget classes

    WidgetElement and classes
    Page Linksnav.gv-widget-page-links, plus gv-widget-page-links--numbers, --numbers-prev-next or --prev-next-only for the display mode. The links are in ul.page-numbers > li.
    Page Links: one link.page-numbers, with current on the current page, and prev, next, first or last on those links
    Show Pagination Infodiv.gv-widget-pagination > p, for example Displaying 1 – 10 of 12
    Page Sizediv.gv-widget-page-size

    Sort indicator classes

    In the Table layout, a column header the visitor can sort by has a sort link with these classes:

    ClassWhen
    gv-sortAlways
    gv-icon-caret-up-downThe table is not sorted by this column.
    gv-icon-sort-descThe table is sorted by this column, ascending.
    gv-icon-sort-ascThe table is sorted by this column, descending.

    The icon names the order the next click sorts by.

    No results state classes

    ClassWhat it is
    gv-no-resultsThe element that holds the “no entries” message
    gv-no-results-textThe message is text.
    gv-no-results-formThe message is a form (No Entries Behavior is Display a Form).
    gv-container-no-resultsAdded to the View container when there are no entries
    gv-widgets-no-resultsAdded to the widget zones when there are no entries

    Other utility classes

    ClassWhat it is
    gv-widgets-headerThe widget zone above the entries
    gv-widgets-footerThe widget zone below the entries
    gv-powered-byThe “Powered by GravityView” link, shown when Display “Powered By” Link is on in the GravityKit settings
    screen-reader-textText for screen readers only, such as the “Results” heading and the table caption

    Responsive breakpoints

    The stylesheet for Views with the Legacy theme uses these SCSS variables:

    VariableValue
    $mobile-portrait320px
    $mobile-landscape480px
    $small-tablet600px
    $tablet-portrait768px
    $tablet-landscape1024px
    $desktop1280px
    $widescreen1400px

    Layouts change at these widths or less:

    WidthWhat changes
    768pxLayout Builder columns stack.
    600pxList layout image and description columns stack.
    575.98pxTable layout: <thead> and <tfoot> are hidden, and each row shows its cells one per line with their labels.
    480pxEvery gv-grid-col-* column is full width, and a Search Bar area with a Number of Columns shows one column.

    Views with a theme such as Vantage use 640px, 768px and 1024px instead: multi-column entry grids drop columns at 1024px, 768px and 640px, and Layout Builder columns, List content, the Table layout and the Search Bar stack at 640px.

    CSS customization filters #

    These filters change the classes and wrappers GravityView prints. The GravityView developer documentation lists every hook with its parameters.

    Note: The PHP examples in this section go in your site’s code. See Where to put code samples.

    Container filters

    gravityview/render/container/class

    Changes the classes of the View container.

    ParameterTypeDescription
    $css_classstringThe layout’s container classes, then gv-container gv-container-{View ID}, then the classes from Container wrapper that apply.
    $context\GV\Template_ContextThe template context.

    Since: 1.5.4, 2.0

    add_filter( 'gravityview/render/container/class', function ( $css_class, $context ) {
        return $css_class . ' my-custom-container';
    }, 10, 2 );

    gravityview/view/wrapper_container

    Changes the wrapper’s HTML. The {content} placeholder stands for everything inside the wrapper. Return an empty value to print the content with no wrapper.

    ParameterTypeDescription
    $wrapper_containerstringThe wrapper’s HTML, for example <div id="gv-view-5-1" class="gv-template-table">{content}</div>.
    $anchor_idstringThe wrapper ID, for example gv-view-5-1.
    $view\GV\ViewThe View.

    Since: 2.15

    This example adds a class to the wrapper and keeps the rest of its HTML:

    add_filter( 'gravityview/view/wrapper_container', function ( $wrapper_container, $anchor_id, $view ) {
        return str_replace( 'class="', 'class="my-view-wrapper ', $wrapper_container );
    }, 10, 3 );

    Entry row filters

    gravityview/template/table/entry/class

    Changes the class of each entry row in the Table layout.

    ParameterTypeDescription
    $classstringalt on every other row, empty on the rows between.
    $context\GV\Template_ContextThe template context.

    Since: 2.0.6.1

    add_filter( 'gravityview/template/table/entry/class', function ( $class, $context ) {
        $entry = $context->entry->as_entry();
        if ( ! empty( $entry['is_starred'] ) ) {
            $class .= ' gv-featured-entry';
        }
        return $class;
    }, 10, 2 );

    gravityview/template/table/entry/row/attributes

    Changes the HTML attributes of each entry row in the Table layout. GravityView adds data-row after this filter.

    ParameterTypeDescription
    $attributesarrayThe attributes, with class holding the row’s class.
    $context\GV\Template_ContextThe template context.

    Since: 2.0

    gravityview/template/list/entry/class

    Changes the class of each entry in the List layout.

    ParameterTypeDescription
    $classstringgv-list-view
    $context\GV\Template_ContextThe template context.

    Since: 2.0.6.1

    gravityview/template/layout-builder/entry/class

    Changes the class of each entry in the Layout Builder layout.

    ParameterTypeDescription
    $classstringgv-layout-builder-view gv-layout-builder-view--entry gv-grid
    $context\GV\Template_ContextThe template context.

    Since: 2.46.2

    gravityview/template/diy/entry/class

    Changes the class of each entry in the DIY layout.

    ParameterTypeDescription
    $classstringgv-diy-view
    $context\GV\Template_ContextThe template context.

    gravityview_entry_class (deprecated)

    Changes the class of an entry. Use the layout filters above instead.

    ParameterTypeDescription
    $classstringThe entry’s class in its layout, for example alt or empty in the Table layout.
    $entryarrayThe entry.
    $view\GravityView_ViewThe View.

    Field filters

    gravityview/field_output/context/{$tag}

    Changes the text that replaces a {{ tag }} placeholder in a field’s markup. Use the class tag to change a field’s classes: gravityview/field_output/context/class. It runs only for the tags the field’s markup has.

    ParameterTypeDescription
    $valuestringThe text that replaces the {{ tag }} placeholder.
    $argsarrayThe field output arguments.
    $context\GV\Template_ContextThe template context.

    Since: 1.11, 2.0

    add_filter( 'gravityview/field_output/context/class', function ( $class, $args, $context ) {
        return $class . ' custom-field-class';
    }, 10, 3 );

    gravityview/field_output/pre_html

    Changes a field’s HTML template before the placeholders are replaced.

    ParameterTypeDescription
    $markupstringThe HTML template.
    $argsarrayThe field output arguments.
    $context\GV\Template_ContextThe template context.

    Since: 1.11, 2.0

    gravityview/field_output/html

    Changes a field’s finished HTML.

    ParameterTypeDescription
    $htmlstringThe field’s HTML.
    $argsarrayThe field output arguments.
    $context\GV\Template_ContextThe template context.

    gravityview/field_output/args (deprecated)

    Changes the arguments before a field’s output is built. Use gravityview/template/field_output/context instead. To change a field’s classes or value rather than its markup, gravityview/field_output/context/{$tag} above is usually the better hook. To change the finished HTML, use gravityview/field_output/html.

    gravityview_field_output (deprecated)

    Changes a field’s finished HTML. Use gravityview/field_output/html instead.

    Search filters

    gravityview_search_class

    Changes the classes of the Search Bar’s <form>, after gv-widget-search. GravityView adds gv-is-search after this filter.

    ParameterTypeDescription
    $search_classstringgv-search-rows, plus the widget’s custom class. A Search Bar with the old layout setting starts with gv-search-horizontal or gv-search-vertical.
    add_filter( 'gravityview_search_class', function ( $search_class ) {
        return $search_class . ' custom-search-class';
    } );

    gk/gravityview/search/widget/grid/column-class

    Changes the class of each column in the Search Bar’s grid.

    ParameterTypeDescription
    $column_classstringThe column class, for example gv-grid-col-1-2 gv-search-col-submit.
    $colstringThe column specification.
    $areasarrayThe areas in the column.
    $search_fields\GV\Search\Search_Field_CollectionThe search fields.

    Since: 2.44

    DIY-specific filters

    gravityview-diy/container

    Changes the tag of the DIY View container. The default is div. Return false to print the entries with no container.

    ParameterTypeDescription
    $tagstringdiv
    $gravityview\GV\Template_ContextThe template context.
    add_filter( 'gravityview-diy/container', function ( $tag ) {
        return 'section';
    } );

    To remove the container, pass WordPress’ __return_false as the callback: add_filter( 'gravityview-diy/container', '__return_false' );.

    gravityview-diy/wrap/multiple and gravityview-diy/wrap/single

    Turn the gv-diy-view wrapper around each entry on or off, on the multiple entries page and the single entry page. The default is true.

    gravityview-diy/container-tags

    Changes the choices of the Container Tag setting.

    ParameterTypeDescription
    $tagsarrayTag names and their labels: none, div, blockquote, pre, h1 to h4 and p, plus address for Address fields.
    $input_typestringThe field’s input type.
    $contextstringdirectory or single.

    Widget zone filters

    gravityview/widgets/wrapper_css_class

    Changes the classes of a widget zone, the gv-widgets-header or gv-widgets-footer element.

    ParameterTypeDescription
    $css_classstringgv-grid gv-widgets-{zone}, plus gv-widgets-no-results when there are no entries and gv-hidden when the View is hidden.
    $zonestringheader or footer.
    $widgetsarrayThe widgets in the zone.

    Since: 1.16.2

    add_filter( 'gravityview/widgets/wrapper_css_class', function ( $css_class, $zone, $widgets ) {
        if ( 'header' === $zone ) {
            $css_class .= ' my-custom-header';
        }
        return $css_class;
    }, 10, 3 );

    DataTables table filter

    gravityview_datatables_table_class

    Changes the classes of the DataTables <table> element. It passes the classes as one string, display dataTable by default. Other DataTables settings add to it, such as nowrap when Responsive is on. GravityView prints gv-datatables before the filtered classes.

    ParameterTypeDescription
    $classesstringThe table’s classes, separated by spaces.
    add_filter( 'gravityview_datatables_table_class', function ( $classes ) {
        return $classes . ' my-custom-table-class';
    } );
    Still stuck? How can we help?

    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
      • Container wrapper
      • Entries section
      • Table layout
      • List layout
      • Layout Builder layout
      • DataTables layout
      • Maps layout
      • DIY layout
      • Edit Entry
      • Search Bar widget
      • The gv_class() function
      • Grid system
      • Other styles
      • CSS customization filters
      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.