Tabs Block Lite adds an accessible and responsive Tabs block to the block editor inserter that can be added to display horizontal list items that can be selected to show their associated sections of content.
Ideal for condensing longform or complex content. Also useful for reducing page scrolling.
Upgrade to Pro at
https://troytempleman.com/wordpress/blocks/tabs-block/.
Features
- Accessible
- Responsive
- Inserter button for adding tabs
- Settings
- Block alignment
- Text alignment
- Item justification
- Styles
- Color
- Text
- Background
- Link
- Button text [Pro]
- Button text hover [Pro]
- Button text active [Pro]
- Button background [Pro]
- Button background hover [Pro]
- Header background active [Pro]
- Panel text [Pro]
- Panel background [Pro]
- Typography
- Font family
- Font size
- Appearance
- Line height
- Letter spacing
- Text decoration
- Letter case
- Dimensions
- Padding
- Margin
- Header padding [Pro]
- Header margin [Pro]
- Button padding [Pro]
- Button margin [Pro]
- Panel padding [Pro]
- Panel margin [Pro]
- Border [Pro]
- Button border [Pro]
- Button border hover [Pro]
- Button border active [Pro]
- Button border radius [Pro]
- Panel border [Pro]
- Panel border radius [Pro]
- Variations [Pro]
- Folder [Pro]
- Pills [Pro]
- Underline [Pro]
Demo
https://troytempleman.com/wordpress/blocks/tabs-block/
HTML
Tabs Block Lite will output a Tabs block with the following HTML structure:
Panel
Tabs Block Lite can be installed in one of the following four ways:
Automatic
To install with the built-in plugin installer:
- Login to your WordPress site at domain.com/wp-admin, where domain.com is the domain of your WordPress site.
- On the Dashboard page, in the left menu, click Plugins.
- On the Plugins page, click Add New Plugin.
- On the Add Plugins page, in the Search plugins... field, type Tabs Block Lite.
- In the Search Results, locate Tabs Block Lite, click Install Now and Activate.
Upload
To install with a .zip file:
- Login to your WordPress site at domain.com/wp-admin, where domain.com is the domain of your WordPress site.
- On the Dashboard page, in the left menu, click Plugins.
- On the Plugins page, click Add New Plugin.
- On the Add Plugins page, click Upload Plugin.
- Click Choose File, locate the .zip file and click Open.
- Click Install Now.
- On the Installing Plugin from uploaded file page, click Activate.
Manual
To install with a SFTP client:
- If you have a .zip file, unzip it with archiving software such as WinZip or Archive Utility.
- In a SFTP client such as WinSCP or FileZilla, connect to your WordPress site directory on your server.
- In the unzipped files, copy the tabs-block-lite folder and paste on your server, in your site’s wp-content/plugins folder.
- Login to your WordPress site at domain.com/wp-admin, where domain.com is the domain of your WordPress site.
- On the Dashboard page, in the left menu, click Plugins.
- On the Plugins page, locate Tabs Block Lite and click Activate.
Theme
To install in your theme instead of a plugin:
- If you have a .zip file, unzip it with archiving software such as WinZip or Archive Utility.
- In the unzipped files, copy the tabs-block-lite folder and paste in your site’s theme folder, such as wp-content/themes/your-theme/inc/tabs-block-lite/, where your-theme is your theme folder.
- In a code editor such as Visual Studio Code or Notepad++, open your theme's functions.php file.
- In your functions.php file, add the path from Step 2, such as require get_stylesheet_directory() . '/inc/tabs-block-lite/tabs-block-lite.php';.
- Save and close your functions.php file.
0.1.2 - September 22, 2024
- Updated: Version in
tabs-block-lite.php
and package.json
.
- Updated: Tags, stable tag and changelog in
readme.md
and readme.txt
.
- Updated: Version and keywords in
build/tab/block.json
, build/tabs/block.json
, src/tab/block.json
, and src/tabs/block.json
.
0.1.1 - April 2, 2024
- Added: Security improvement by adding
wp_kses_post
filter to $block_content
in build/tab/render.php
, build/tabs/render.php
, src/tab/render.php
, and src/tabs/render.php
.
- Added: Code to prevent direct file access in
build/tab/render.php
, build/tabs/render.php
, src/tab/render.php
, and src/tabs/render.php
.
- Updated: Version in
build/tab/block.json
, build/tabs/block.json
, src/tab/block.json
, and src/tabs/block.json
.
- Updated: Stable tag and changelog in
readme.md
and readme.txt
.
- Updated: Version in
tabs-block-lite.php
and package.json
.
0.1.0 - November 15, 2023