# Pre-built components

## About the feature

Advanced Views comes with a set of pre-built components for a quick start. Meta Fields and their Field Groups along with responsive CSS rules are included.

{% hint style="info" %}
The goal of the library isn't to provide a complete library of ready-made elements, but rather a set of the most often used elements, which can be easily customized for your project.&#x20;

After customization, you can save the components manually or use the [reusable component library](https://docs.advanced-views.com/templates/reusable-components-library-pro) feature to reuse them in other projects.

This encourages different freelancers and agencies to create their own sets of unique elements, instead of reusing common ones, thereby fostering the presence of distinct and unique designs.
{% endhint %}

## How to use it

#### 1. Opt-in items

Open the *Layouts* or *Post Selections* items table and click on the 'Pre-built components' tab.

It displays a list of available pre-built components with a short description for each.

#### 2. Import opted items

Click 'import' either below the item title or select multiple items and import in the bulk actions. It'll then import the item itself along with the related meta group.

#### 3. Tune the group location rules or activate Gutenberg block

After the item is imported, you'll see a notice with links to the item itself and meta group. Click on the meta group link and set up the location rules for your target page.

{% hint style="info" %}
Tip: If you have Pro, you can add the imported component to your Gutenberg library. In this case, you should skip setting up location rules and visit the item link to activate the [Gutenberg block option](https://docs.advanced-views.com/display-content/custom-gutenberg-blocks-pro).
{% endhint %}

#### 4. Fill out data

Visit the target page and fill out the new meta fields. If you've added the Gutenberg block, then add the block to the page and fill out the fields.

#### 5. Paste the shortcode in the target place

Note: If you've opted for the Gutenberg block option, skip this step.

Visit the imported item, copy the shortcode, and paste it into the target place. That's it, you're done!&#x20;

Now you can visit the page and see the new pre-built component in the list. You can refine the pre-built styles and markup according to your needs.

## Pre-built *Layouts*&#x20;

{% hint style="info" %}
Note: The screenshots below are taken on a fresh WordPress installation, without page builders and global styles. The appearance of the imported items on your website may vary depending on your theme/plugin's global styles. You can edit the imported items to refine it and achieve your desired look.
{% endhint %}

<figure><img src="https://2293383029-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FN2nAC4pTDjEmDu8ZkLB2%2Fuploads%2F7mWS8kXppFl4KvKpU4uY%2Fabout-us-bottom.png?alt=media&#x26;token=d5551e3c-c9ef-4ac5-ab6a-acfe4489cad1" alt=""><figcaption><p>About us (Pro, items at the bottom)</p></figcaption></figure>

<figure><img src="https://2293383029-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FN2nAC4pTDjEmDu8ZkLB2%2Fuploads%2F0OpD2eN58djG0debuV6I%2Fabout-us-left.png?alt=media&#x26;token=2cd735a0-f780-4570-b19e-4d05fbedf65e" alt=""><figcaption><p>About us (Pro, items on the right)</p></figcaption></figure>

<figure><img src="https://2293383029-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FN2nAC4pTDjEmDu8ZkLB2%2Fuploads%2FsU2dIcKhWptb2tPpiOEW%2Fcall-to-action.png?alt=media&#x26;token=4574d4b0-0532-493b-b635-16064905e011" alt=""><figcaption><p>Call to action</p></figcaption></figure>

<figure><img src="https://2293383029-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FN2nAC4pTDjEmDu8ZkLB2%2Fuploads%2FivJidpH66PaBDaT26B0H%2Fcontact-form.png?alt=media&#x26;token=6ceed16c-9ecd-430a-87d0-6d5e0147b750" alt=""><figcaption><p><strong>Contact form (Pro, ContactForm7)</strong></p></figcaption></figure>

<figure><img src="https://2293383029-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FN2nAC4pTDjEmDu8ZkLB2%2Fuploads%2FvDCig14sfcSn2am421yW%2Ffeatured-item.png?alt=media&#x26;token=41b82400-7413-409e-a146-70a0ad829dbf" alt=""><figcaption><p>Featured item</p></figcaption></figure>

<figure><img src="https://2293383029-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FN2nAC4pTDjEmDu8ZkLB2%2Fuploads%2Fmt2mzB4DkU6ipusfSqbO%2Ffeatured-section.png?alt=media&#x26;token=4094623c-c911-4510-8380-d6aa03758a5b" alt=""><figcaption><p>Featured section</p></figcaption></figure>

<figure><img src="https://2293383029-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FN2nAC4pTDjEmDu8ZkLB2%2Fuploads%2F24zIe0ZWz71SqJVGCS1N%2Ffooter.png?alt=media&#x26;token=8b11a7c9-7a59-49cb-904d-5fa3e6bec97b" alt=""><figcaption><p>Footer</p></figcaption></figure>

<figure><img src="https://2293383029-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FN2nAC4pTDjEmDu8ZkLB2%2Fuploads%2FiKaN0pVglpZkV68rHl4g%2Fcookie-consent.png?alt=media&#x26;token=e419a757-9ec3-4e2b-ade4-317507357aec" alt=""><figcaption><p>GDPR Cookie consent</p></figcaption></figure>

<figure><img src="https://2293383029-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FN2nAC4pTDjEmDu8ZkLB2%2Fuploads%2FUfcihc5JmbZjpU07tDlm%2Fheader.png?alt=media&#x26;token=eb08595a-6426-476b-8637-a6a83715967b" alt=""><figcaption><p>Header (with WP menu)</p></figcaption></figure>

<figure><img src="https://2293383029-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FN2nAC4pTDjEmDu8ZkLB2%2Fuploads%2F3OYPlggy6i9efaP8wd4J%2Fhero.png?alt=media&#x26;token=cbe4f811-ff16-40bc-b9c6-c2134ba0bdfa" alt=""><figcaption><p>Hero (introduction)</p></figcaption></figure>

<figure><img src="https://2293383029-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FN2nAC4pTDjEmDu8ZkLB2%2Fuploads%2FBRcTwEoktEPILGkEWxaR%2Ftestimonials.png?alt=media&#x26;token=072cb418-3ba3-4764-866e-38aae7b3461c" alt=""><figcaption><p>Testimonials (Pro)</p></figcaption></figure>

| Title                            | Description                                                                                                                      | Notes                                                                                                                                                                               |
| -------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| About us (Pro)                   | A horizontal or vertical section featuring a title, description, and items. Each item includes an image, title, and description. | <p>Left or right direction is managed via the 'select' field. <br>In Pro only, because it uses the repeater field inside the template</p>                                           |
| Call to action                   | Banner with a colored background, including a title, description, and button.                                                    |                                                                                                                                                                                     |
| Contact form (Pro, ContactForm7) | Basic styles for forms from the Contact Form 7 plugin.                                                                           | In Pro only, as it uses the shortcode inside the template                                                                                                                           |
| Featured item                    | 2-column layout with the image displayed on the left and the title, description, and button shown on the right.                  | With the left/right direction switcher                                                                                                                                              |
| Featured section                 | 2-column layout with a large image shown on the right and the title, description, and text link displayed on the left.           |                                                                                                                                                                                     |
| Footer                           | Copyright text with the current year.                                                                                            |                                                                                                                                                                                     |
| GDPR cookie consent              | Website cookie notice with JavaScript to manage its appearance, a link to the policy, and a button to accept included.           |                                                                                                                                                                                     |
| Header (with WP menu)            | Header with a logo and WordPress menu items. The menu supports two levels of hierarchy.                                          | Add the ['menu-slug' argument](https://docs.advanced-views.com/shortcode-attributes/view-shortcode#id-6.-loading-fields-from-a-menu) to the shortcode to load from the target menu. |
| Hero (introduction)              | Full-screen image background with a text block overlay, including title and description with padding.                            |                                                                                                                                                                                     |
| Testimonials (Pro)               | Testimonials displayed in a slider format with 3 items in a row, featuring the message, author, and company icon.                | In Pro only, as it uses the slider feature                                                                                                                                          |

## Pre-built Post Selections

{% hint style="info" %}
Note: The screenshots below are taken on a fresh WordPress installation, without page builders and global styles. The appearance of the imported items on your website may vary depending on your theme/plugin's global styles. You can edit the imported items to refine it and achieve your desired look.
{% endhint %}

<figure><img src="https://2293383029-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FN2nAC4pTDjEmDu8ZkLB2%2Fuploads%2FaBd0TqiDHDS4xPNLU1LP%2Flatest-articles.png?alt=media&#x26;token=fdd6f9ea-7523-4b3c-a397-d58a204137c4" alt=""><figcaption><p>Latest articles</p></figcaption></figure>

<figure><img src="https://2293383029-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FN2nAC4pTDjEmDu8ZkLB2%2Fuploads%2FeytBGTAxIlZGeRz0tdTE%2Flatest-articles-slider.png?alt=media&#x26;token=d9ce9608-4573-4b5e-9623-3e3eaa463cba" alt=""><figcaption><p>Latest articles slider (Pro)</p></figcaption></figure>

| Title                        | Description                                                                                | Notes                                      |
| ---------------------------- | ------------------------------------------------------------------------------------------ | ------------------------------------------ |
| Latest articles              | 4-column grid displaying the latest posts, featured image, title, and last updated date.   |                                            |
| Latest articles slider (Pro) | 3-column slider displaying the latest posts, featured image, title, and last updated date. | In Pro only, as it uses the slider feature |
