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

Fullwidth Button

Overview

As the name say’s the Fullwidth Button element takes up the entire width of the parent container. It functions same as the button element with an extra option to add the custom text description. The fullwidth button element can be customized from the button options available when you double-click the button element in the advanced layout builder. Below is an example of the fullwidth button element.

Hi I’m a full width button 🙂

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 button can be added anywhere on the site where you can type text using the button shortcode. Example: The below shortcode can be used to add buttons to your slider caption.

[av_button_big label='Hi I’m a full width button :) ' description_pos='below' link='manually,javascript:;' link_target='' icon_select='no' icon='ue800' font='entypo-fontello' custom_font='#ffffff' color='green' custom_bg='#444444' color_hover='black' custom_bg_hover='#444444' custom_class='' admin_preview_bg='' av_uid='av-n4yt1m'][/av_button_big]

Customization

Enable custom CSS class name support from Enfold theme options > Layout Builder and add a custom class name called “my-custom-fullwidth-button” to the fullwidth button element.

Button fonts

Button title

Font style ( size, color, family )

Font size: Font size for the button element can be changed using the below CSS.

Font color: To change the button font color, double-click the button element and open the button options and switch to the Color tab > Custom color

Font family: The buttons inherit the default body font family set in the theme options general styling.

Using CSS we can change all of the default styles.



/* Title */

.my-custom-fullwidth-button a.avia-button .avia_iconbox_title {
     font-size:30px;
     color: gold;
     font-family: 'Cookie', Helvetica, sans-serif;
}

Responsive button labels

If you wish to change the font size of the button elements on the mobile device please use the below CSS



/* Font size on desktop */

#top .my-custom-fullwidth-button a.avia-button .avia_iconbox_title {
     font-size:40px;
}

/* Font size on mobile */
@media only screen and (max-width: 767px) {
	#top .my-custom-fullwidth-button a.avia-button .avia_iconbox_title {
    	font-size:14px;
    }	
}

On hover

The below CSS can be used to change the font style on hover.



/* Button font style on hover */

.my-custom-fullwidth-button:hover a.avia-button .avia_iconbox_title {
     color: gold;
}

Button description

Font style ( size, color, family )

Font size, color and family for the description font can be changed using CSS we can change all of the default styles.



/* Description */

.my-custom-fullwidth-button a.avia-button .av-button-description p {
     font-size:13px;
     color: gold;
}

Responsive button labels

If you wish to change the font size on the mobile device please use the below CSS



/* Font size on desktop */

.my-custom-fullwidth-button a.avia-button .av-button-description p {
     font-size:30px;
}


/* Font size on mobile */
@media only screen and (max-width: 767px) {
	#top .my-custom-fullwidth-button a.avia-button .av-button-description p {
     font-size:14px;
	}
}

On hover

The below CSS can be used to change the font style on hover.



/* Font style on hover */

.my-custom-fullwidth-button a.avia-button:hover .av-button-description p {
     font-size:30px;
}



Button Border

Border (color / width / style)

Add a custom border style to the full-width button element


/* Fullwidth button border */
#top .my-custom-fullwidth-button .avia-button-fullwidth {
   border: 12px solid red;
}

.my-custom-fullwidth-button .avia-button-fullwidth .avia_button_background,
.my-custom-fullwidth-button .avia-button-fullwidth:hover .avia_button_background {
	border: none !important;
	border-radius: 0;
}

On hover

Change the border style on hover



/* Bordder on hover */

#top .my-custom-fullwidth-button .avia-button-fullwidth:hover {
   border: 12px solid gold;
}

.my-custom-fullwidth-button .avia-button-fullwidth .avia_button_background,
.my-custom-fullwidth-button .avia-button-fullwidth:hover .avia_button_background {
	border: none !important;
	border-radius: 0;
}

Button Icon

Color

Button icon color is inherited from the button font color. The button font color can be set in the button options > color tab > custom color. To change the icon color separately please use the below CSS



/* Button Icon color */

.my-custom-fullwidth-button a.avia-button .avia_button_icon {
	color:gold;
}

Size

Button icon size is inherited from the button font size. To change the icon size please sue the below CSS



/* Button icon size */


.my-custom-fullwidth-button a.avia-button .avia_button_icon {
	font-size: 40px!important; /* Button icon size */
	line-height: 40px; /* Vertical align icon*/
	color:gold;
}

Alignment

The icon can be displayed before or after the button text. Double click the button element to open the button options and select the Button Icon to be displayed to the left or right.

On hover

To change the button icon style on hover please use the below CSS




/* Button Icon on hover */

.my-custom-fullwidth-button a.avia-button:hover .avia_button_icon {
	color:gold;
}

Button Background

Solid Color

To change the background color, double-click on the button element and open button element options then select Colors tab. Here you can choose one of the pre-defined color or add a custom color from the “Custom Color”.

To change the background color using CSS please use the below CSS



/* Button background */


.my-custom-fullwidth-button .avia-button-fullwidth {
	background: lightblue !important;
}

Gradient

Add gradient button background



/* Gradient button background */


.my-custom-fullwidth-button .avia-button-fullwidth {
	background: #67B26F;  /* fallback for old browsers */
	background: -webkit-linear-gradient(to right, #4ca2cd, #67B26F);  /* Chrome 10-25, Safari 5.1-6 */
	background: linear-gradient(to right, #4ca2cd, #67B26F); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}

Image

To set a background image to the button use the below CSS code and edit the image path.



/* Button background */


.my-custom-fullwidth-button .avia-button-fullwidth {
	background: url('image.jpg');
}

Transparency

You can choose to display the transparent background button with a light or dark border from the button element options > color tab.

To change the opacity of the button background please use the below CSS



/* Button opacity */

.my-custom-fullwidth-button .avia-button-fullwidth {
   background: rgba(13,23,56, .45)	!important;
}

On Hover

We can change the background color on mouse hover by using the below code.



/* Background on hover */
.my-custom-fullwidth-button .avia-button-fullwidth:hover .avia_button_background {
	background: gold !important;
}

Button Shape

Pill

To change the shape of the default button to a pill shape, increase the border-radius from Enfold Options > Advanced Styling > Misc > Buttons >Border radius

To do it the CSS way and target specific buttons, please add the below code to your site:



/* Pill shape buttons */
.my-custom-fullwidth-button .avia-button-fullwidth {
   border-radius: 50px;
}



Remove round edges or border radius

To remove the rounded edges of the buttons please add the below CSS to your site.



/* Remove round edges  */


.my-custom-fullwidth-button .avia-button-fullwidth {
   border-radius: 0px;
}


Button size and alignment

Default Size

By default, the fullwidth buttons take the entire width of the parent container it is placed in.

Custom Width

The easiest way to control the button width is to place it inside the column whose width suits your design.

If you wish to do the CSS way, please use the below code and do not forget to calculate the button padding which adds to the width of the buttons.



/* Button width */
#top .my-custom-fullwidth-button .avia-button-fullwidth .avia_button_background,
.my-custom-fullwidth-button .avia-button-fullwidth {
   max-width:200px;
   left: 50%;
   transform: translate(-50%);
}

NOTE: If you do not like to center align the custom width button please use the below code instead: User “float:left;” or “float:right;” to align the custom width button to left or right.



/* Button width */
#top .my-custom-fullwidth-button .avia-button-fullwidth .avia_button_background,
.my-custom-fullwidth-button .avia-button-fullwidth {
   max-width:200px;
   float: right;
}

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