---
title: "Changing search form style from horizontal to vertical"
date: 2026-04-23
author: "GravityKit"
link: "https://www.gravitykit.com/docs/gravityview/search/changing-search-form-style-from-horizontal-to-vertical/"
---

This article is outdated; you can now set Horizontal or Vertical layout configurations when [configuring the Search Bar](https://www.gravitykit.com/docs/gravityview/search/configuring-the-search-bar/). The code below does still work.

GravityView displays search fields horizontally by adding a CSS class `.gv-search-horizontal` to the search container. To remove this styling, you can [add this code to your theme's functions.php file](https://www.gravitykit.com/docs/gravityview/customizing-your-views/where-to-put-code-samples/):

```
add_filter('gravityview_search_class', '__return_null');
```

```
add_filter('gravityview_search_class', '__return_null');
```

You can also use the plugin attached below: