Enfold Documentation
  • Home
  • Changelog
  • Support
  • Menu Menu
  • Link to X
  • Link to Dribbble

Widget Area

Add a sitewide notification bar! Access widget area to display your information here.

Stacked widget area, logo and menu.

Phone: 601-785-8085

Search Search

Click me Call to Action Click Again
100%

Faster and smarter!

Grid RowAnimated CountdownPortfolio GridAnimated NumbersBlog PostCatalogueCode BlockCommentsContent SliderContact FormFullwidth Sub MenuHeadline RotatorIconIcon BoxIcon ListMasonryMailChimp SignupMagazineAccordion SliderTeam MemberTestimonialsTabsTableSocial Share ButtonsSeparator / WhitespacePromo BoxProgress BarPost SliderVideoPartner/Logo ElementMasonry GalleryImage With HotspotsGoogle MapImageGalleryFullwidth Easy SliderFullscreen SliderNotificationAnimationBreadcrumbsTab SectionsStretched LayoutEnfold showcaseHosting RequirementColor SectionAccordionFeatured Image SliderEasy SliderAdvanced LayersliderColumnsFooterIntro to layout builderPaginationButtonSpecial headingAdd custom CSSAdd Custom JS or PHP ScriptEnfold ChangelogMenuHeaderMega MenuLogooptimizationHooks and FiltersLightboxShopPersonalize themesidebarSearchTranslationTypographyExample of Widget Left, Logo center, Menu rightExample of Widget Left Menu center Logo rightHow to use the custom codeHow to clear the cacheExample of color section overlayFullwidth ButtonButton RowChild ThemeQuick setupTheme RegistrationPage SetupImport DemosInstall enfold themeTheme updateBackup WordPress SiteBackup custom post typesBackup theme settingsInstall WordPress on localhostPrivacy & CookiesGoogle AnalyticsInstagramCustom Element TemplatesOpenStreetMaps - Leaflet MapsAccessibilityIcon CirclesChart ElementCustom Layout & Dynamic ContentDismissible Admin Notice BoxSVG Icon SetsList MenuIcon Flipbox GridLottie AnimationTimeline

Widget one

Widget two

Video Widget background

Grid Row

Overview

Grid element is very useful to build interesting box layout designs. A grid is a full-width element and lets you add any number of rows below each other. A Grid row consists of a minimum one and up to 5 cells that are aligned beside each other. Each cell can have a independent background color or image. Grid cells can accommodate a block of text, buttons, image, video, or other content elements.



Another Grid layout example

How to use grid element?

  • Drag and drop the grid element.
  • Add the number of cells required.
  • Click on “Set cell size” and the theme will auto-generate the combination of grid cells.
  • Select the grid cell combination that suits your purpose well.
  • Add your content in the grid cell.

Cell Animation

Grid cells can fade in or be revealed by a curtain wipe when the visitor first scrolls to them, the same animations columns already offer.

Code Snippets

How to use the snippets?

  • Add the CSS Snippets to Enfold child theme styles.
  • Add the JS and PHP scripts to your child theme functions.php file.
  • Shortcodes can be used in a text area in pages, posts, sliders and widget areas. Enable debug mode to view the page shortcode.
  • Enable custom CSS class name support to add your class names to the theme elements.
  • Disable script merging and clear the cache to view the changes on the frontend.

NOTE: If the code snippets produce a different result on your site, it may be because the settings on your site are different or due to any customization already added to achieve a similar result. Please try removing your customization if any and feel free to change the values in the example codes to suit your design.

Shortcode

A Grid element can produce grid cells in a large number of combination hence it is best to enable debug mode and view the shortcode for the grid element.

[av_layout_row border='' min_height_percent='' min_height='0' color='main_color' mobile='av-flex-cells' id='' av_element_hidden_in_editor='0' mobile_breaking='' av-desktop-hide='' av-medium-hide='' av-small-hide='' av-mini-hide='' av_uid='av-3do328']
[av_cell_one_half av_uid='av-395u0g'][/av_cell_one_half] [av_cell_one_half av_uid='av-33mufk'][/av_cell_one_half]
[/av_layout_row]

Customization

Grid row width

By default, a “Grid row” is a fullwidth element. If your design demands a grid layout which is not full-width. The width of the grid can be modified using custom ID and CSS code.

  • Let’s start by adding a custom ID to the grid and call it “av-grid-custom-width”. To make it easy we have provided the necessary shortcode for the grid row which you can copy to your page/post and save.
  • Add the below CSS in Enfold > General Styling > Quick CSS or in your child theme styles.

Example of custom width grid row element.

Code snippets:

Shortcode

[av_layout_row border='' min_height_percent='' min_height='0' color='main_color' mobile='av-flex-cells' id='av-grid-custom-width' av_element_hidden_in_editor='0' mobile_breaking='' av_uid='av-1u5ru4']
[av_cell_one_half vertical_align='top' padding='30px' padding_sync='true' background='bg_color' background_color='#83a846' background_gradient_color1='' background_gradient_color2='' background_gradient_direction='vertical' src='' attachment='' attachment_size='' background_attachment='scroll' background_position='top left' background_repeat='no-repeat' link='' linktarget='' link_hover='' mobile_display='' av_uid='av-jhx48nf9']

[av_hr class='custom' height='50' shadow='no-shadow' position='center' custom_border='av-border-thin' custom_width='50px' custom_border_color='' custom_margin_top='20vh' custom_margin_bottom='30px' icon_select='no' custom_icon_color='' icon='ue808' font='entypo-fontello' av_uid='av-jhx49xz4' admin_preview_bg='']

[av_heading tag='h3' padding='10' heading='Grid Row 1' color='' style='blockquote modern-quote modern-centered' custom_font='' size='' subheading_active='' subheading_size='15' custom_class='' admin_preview_bg='' av-desktop-hide='' av-medium-hide='' av-small-hide='' av-mini-hide='' av-medium-font-size-title='' av-small-font-size-title='' av-mini-font-size-title='' av-medium-font-size='' av-small-font-size='' av-mini-font-size='' margin='' av_uid='av-3ilhgc'][/av_heading]

[av_hr class='custom' height='50' shadow='no-shadow' position='center' custom_border='av-border-thin' custom_width='50px' custom_border_color='' custom_margin_top='30px' custom_margin_bottom='20vh' icon_select='no' custom_icon_color='' icon='ue808' font='entypo-fontello' av_uid='av-jhx49xz4-3' admin_preview_bg='']

[/av_cell_one_half][av_cell_one_half vertical_align='top' padding='30px' padding_sync='true' background='bg_color' background_color='#7bb0e7' background_gradient_color1='' background_gradient_color2='' background_gradient_direction='vertical' src='' attachment='' attachment_size='' background_attachment='scroll' background_position='top left' background_repeat='no-repeat' link='' linktarget='' link_hover='' mobile_display='' av_uid='av-jhx48uue']

[av_hr class='custom' height='50' shadow='no-shadow' position='center' custom_border='av-border-thin' custom_width='50px' custom_border_color='' custom_margin_top='20vh' custom_margin_bottom='30px' icon_select='no' custom_icon_color='' icon='ue808' font='entypo-fontello' av_uid='av-jhx49xz4-2' admin_preview_bg='']

[av_heading tag='h3' padding='10' heading='Grid Row 2' color='' style='blockquote modern-quote modern-centered' custom_font='' size='' subheading_active='' subheading_size='15' custom_class='' admin_preview_bg='' av-desktop-hide='' av-medium-hide='' av-small-hide='' av-mini-hide='' av-medium-font-size-title='' av-small-font-size-title='' av-mini-font-size-title='' av-medium-font-size='' av-small-font-size='' av-mini-font-size='' margin='' av_uid='av-2f0svg'][/av_heading]

[av_hr class='custom' height='50' shadow='no-shadow' position='center' custom_border='av-border-thin' custom_width='50px' custom_border_color='' custom_margin_top='30px' custom_margin_bottom='20vh' icon_select='no' custom_icon_color='' icon='ue808' font='entypo-fontello' av_uid='av-jhx49xz4-1' admin_preview_bg='']

[/av_cell_one_half]
[/av_layout_row]

CSS

 

/* Custom grid row width*/

#av-grid-custom-width {
    max-width: 1310px;
    margin: 0 auto;
}

Clickable Grid cells

Sometimes you may need to link a grid cell and make it clickable, to do so:

  • First, enable custom CSS class name support.
  • Give a custom CSS class name “grid-clickable” to the grid cell.
  • Add your text content with a link.
  • Add the below script in child theme functions.php
/*----------------------------------------
// Js 
// Clickable grid cells
//--------------------------------------*/
function avia_grid_clickable(){
?>
 <script>
jQuery(window).on('load', function(){
jQuery(".grid-clickable").click(function() {
  window.location = jQuery(this).find("a").attr("href"); 
  return false;
});
});
 </script>
<?php
}
add_action('wp_footer', 'avia_grid_clickable');
  • Add the CSS below in Enfold > General Styling > Quick CSS or in your child theme styles.
/*----------------------------------------
// Grid Clickable CSS
//--------------------------------------*/

.grid-clickable {
cursor: pointer;
}

Gap between grid cells

To add gaps between the grid cells as shown in the below picture.

Add the CSS snippet in Enfold > General Styling > Quick CSS or in your child theme styles.

/*----------------------------------------
// Grid cell gap
//--------------------------------------*/

#top .flex_cell {
    border-width: 24px!important;
    border-right-width: 0px!important;
    border-bottom-width: 0px!important;
    border-style: solid!important;
    border-color:#FFF!important;
}

#top .flex_cell:last-child {
    border-right-width: 24px!important;
}

Resource

Contributed video

The Grid Row Tutorial

Grid row on mobile

Where: Layout Builder > Grid Row > Advanced > Responsive

Mobile Behaviour decides whether the cells stack on small screens (default) or stay side by side as on large screens.

Fullwidth Break Point sets when the cells switch to full width: on mobile (767px and below) or already on tablets (989px and below).

Column Behaviour When Fullwidth sets the order of the stacked cells:

  • Same order as on desktop: cells keep their order.
  • Reverse order: the last cell comes first.
  • Set the position of each cell: open each cell, go to Advanced > Responsive and choose its position there.

Contents

ÂĐ Copyright - Enfold Documentation - Enfold Theme by Kriesi
  • Privacy Policy
  • Legal Information
Scroll to top Scroll to top Scroll to top

This site uses cookies. By continuing to browse the site, you are agreeing to our use of cookies.

OK

Cookie and Privacy Settings



How we use cookies

We may request cookies to be set on your device. We use cookies to let us know when you visit our websites, how you interact with us, to enrich your user experience, and to customize your relationship with our website.

Click on the different category headings to find out more. You can also change some of your preferences. Note that blocking some types of cookies may impact your experience on our websites and the services we are able to offer.

Essential Website Cookies

These cookies are strictly necessary to provide you with services available through our website and to use some of its features.

Because these cookies are strictly necessary to deliver the website, refusing them will have impact how our site functions. You always can block or delete cookies by changing your browser settings and force blocking all cookies on this website. But this will always prompt you to accept/refuse cookies when revisiting our site.

We fully respect if you want to refuse cookies but to avoid asking you again and again kindly allow us to store a cookie for that. You are free to opt out any time or opt in for other cookies to get a better experience. If you refuse cookies we will remove all set cookies in our domain.

We provide you with a list of stored cookies on your computer in our domain so you can check what we stored. Due to security reasons we are not able to show or modify cookies from other domains. You can check these in your browser security settings.

Google Analytics Cookies

These cookies collect information that is used either in aggregate form to help us understand how our website is being used or how effective our marketing campaigns are, or to help us customize our website and application for you in order to enhance your experience.

If you do not want that we track your visit to our site you can disable tracking in your browser here:

Other external services

We also use different external services like Google Webfonts, Google Maps, and external Video providers. Since these providers may collect personal data like your IP address we allow you to block them here. Please be aware that this might heavily reduce the functionality and appearance of our site. Changes will take effect once you reload the page.

Google Webfont Settings:

Google Map Settings:

Google reCaptcha Settings:

Vimeo and Youtube video embeds:

Other cookies

The following cookies are also needed - You can choose if you want to allow them:

Accept settingsHide notification only