Layers Tabs Widget
The Layers Tabs Widget, found in Layers Pro, is incredibly versatile and can be used as a custom menu, FAQ, feature list, or services outline, just to name a few! This article outlines the widget’s options. For steps on configuring this widget for any of the other uses listed above, visit the Tutorials section.
When you add a new Accordion widget, or if you have created a page using one of the Preset layouts that use this widget, it will display with some default settings and content.
The design bar, located on the right side of the widget, controls the overall style and layout for the widget.
1 – Layout
This section sets the Widget’s overall size
- Boxed will limit the width of the slider to align with your content. This option is best set in combination with the Boxed Layout in your Site and Header settings.
- Full Width will allow the slider to span the entire browser window and is the default.
2 – Background
The background option affects the widget background and will span full width of the page.
Click SELECT COLOR to bring up the color wheel to choose a color. You may optionally enter a color manually using its HEX code.
- Background colors should match any background image you set, as the darkness or lightness of the color will determine whether the widget title and description area is black or white by default.
Click CHOOSE IMAGE and upload or select an image to fill the widget container with something other than a solid color.
- Textures, photos and images without embedded text are best.
- Full-size images should be at least 1920px wide and as tall as the space it intends to fill to ensure highest quality at all screen sizes.
- Tiles or repeatable images can be any size you want.
When you set a background image, the following settings will appear:
Choose Repeat only if you want your image to tile. Best used with small patterns and textures.
This option aligns your image and can help you adjust the placement of the subject of your background if needed.
Top will display it from Top-down, Bottom from bottom-up, Left from top-left and right from top-right. Center is the absolute center and is usually best.
Parallax allows your background image to stay in place while the site is scrolled. For Parallax to work well, your background image must be on Repeat, or be at least 300px taller than the widget’s height to allow for scrolling.
Check this option if you want your image to always fill the slide at all screen sizes. This is helpful if your image is less than 1908px but should not be used on images below 1600px or you risk significant quality loss at higher resolutions.
3 – Tab Panel
These options determine the size of the tabs.
Choose a size for the tabs and set a background color. To allow the bar/header to appear transparent, choose the same color as the page or widget background.
4 – Widget Title & Description
Sets a heading for the widget, appearing above your accordions, and may be left blank.
Click the button to choose your alignment, size and color:
This option allows you to choose the heading tag to wrap your title, H3 by default. The heading tag does not impact SEO ranking or change the heading size by default, though it can be used in child themes or custom styling to allow selecting special heading styles such as jumbo headings, fancy headings etc.
For best results we recommend keeping these H2 or H3 to ensure your site outline reads well for visitors on accessibility devices.
The Text align option will affect the alignment of the widget Title and Description. Choose from Left, Centered, Right or Justified
Choose from Small, Medium or Large.
Each size option is pre-configured with optimal balance, line height and font-size combinations and will vary depending on your font choice in Site Settings, or custom styling added through a Style Kit or Child Theme.
Depending on the background color of the content area, your text will be black or white by default, but can be customized here.
Click on SELECT COLOR to expand the color wheel and click to select a color from the palette or enter an HTML hex value.
The Description field will display just below the widget title above the widget content. Clicking into the description will activate the rich text editor to aid you in formatting your content, and supports basic HTML input via the Code </>view, much like the WordPress post editor.
For best results, limit the description to 1-3 sentences to introduce the content in this section of your layout. This field may optionally be left blank.
- You should not paste text/html from Word or other text editors into this field or it may carry over unpredictable code that causes formatting issues.
- Shortcodes are OK, but the element pulled in may not jive well with the widget limitations and may be best in a column or require Advanced CSS styling.
See below for more help with using the Content Editor tools.
5 – |Tab Title
Set the text for the Accordion toggle
6 – Tab Excerpt
The “Excerpt” pertains to the tab content that appears when you click a tab.
This field works like a lite version of the post editor and can take a small amount of text or basic HTML. The most common use is to enter a short excerpt of 1-3 sentences. This field may optionally be left blank.
- You cannot put scripts into this field
- You should not paste text/html from Word or other text editors into this field as it can carry over unwanted formatting
- You can put shortcodes into this field
- You can put basic HTML or embed codes into the code view. such as maps or video. Choose the “iframe embed code” from the share options where available.
Customizing Widget Text Content
Images may be added without shortcodes by using the code </> panel and a basic HTML image tag. Example:
<img src="http://yoursite.com/wp-content/uploads/imagename.jpg" />
The file’s url may be copied from the image information screen in the Media Library (access the media library from the Background option if you need to upload an image directly or grab the url for an existing image).
7 – Advanced Styling
This section is intended for front-end designers or individuals who are comfortable working with CSS. It allows you to create a custom class and add some custom css that will load only when a widget with this class is loaded. This is useful in cases where you want to style widgets differently from one another and want the styling to be saved in the page’s export data. This has advantages over using the global CSS area when creating style kits, for example.
You may also increase or decrease widget padding and margins here.
If you are new to CSS or WordPress, you can disregard the Advanced button, although some of our Tutorials will provide you with instructions and some codes snippets to get you started with using this feature.
8 – Adding and Deleting Tabs
To add more sections, simply click the +ADD NEW Tab bar. This will duplicate your previous section to help speed up customization.
To delete a section, click the pencil icon in the right corner of the accordion and click the red trash can icon.
Save your layout any time by clicking SAVE & PUBLISH
Did you know?
Our friends at Jetpack are doing some incredible work to improve the WordPress experience. Check out Jetpack and improve your site's security, speed and reliability.