[oik] plugins.com

WordPress plugins and themes

  • Home
  • About
    • lazy shortcodes
    • smart shortcodes
    • oik base plugin
      • oik – donate
      • oik PayPal buttons
      • oik installation
      • oik Button Shortcode button
      • oik changelog
      • oik FAQ
      • oik plugins on SVN
      • oik plugins on GitHub
  • Plugins
    • oik base plugin
    • FREE oik plugins
    • WordPress plugins
    • Premium oik plugins
    • Bespoke oik plugins
  • Shortcodes
    • Shortcode examples
  • Blocks
    • Block examples
  • APIs
    • ALL action and filter hooks
  • Blog

ACF field block – with label

This example demonstrates using the ACF field block’s Display label toggle.

ACF field block Display label field

Display label unchecked

When unchecked, which is the default, the field’s label is not displayed.

Which of these gets saved?
Which of these textarea fields gets saved

Display label checked

When checked, the field’s label and value are displayed in two divs, which can be styled separately using CSS.

Text
Which of these gets saved?
Text Area
Which of these textarea fields gets saved

Custom CSS using the CSS block

  • Here we style the labels and values as a grid.
  • We append a separator of “: ” to each label.
div.site-inner div.wp-block-acf-field-acf-field.has-label { display: grid; grid-template-columns: 20% 80%; column-gap: 1rem; }
.wp-block-acf-field-acf-field .label::after {
    content: ": ";
}
.wp-block-acf-field-acf-field .label { font-weight: bold; }

Published: February 5, 2024 | Last updated: March 15, 2024

Information

Block: ACF field – acf-field/acf-field
Block letters: A,B,F,L,W

Other examples

  • ACF field block – 5 Choice fields
  • ACF field block – 6 Relational fields
  • ACF field block – 7 Basic field types
  • ACF field block – Advanced picker fields
  • ACF field block – Clone field type
  • ACF field block – File
  • ACF field block – Flexible content
  • ACF field block – Gallery field
  • ACF field block – Google Map field type
  • ACF field block – Image type
  • ACF field block – Layout field types: Group
  • ACF field block – oEmbed type
  • ACF field block – Repeater field
  • ACF field block – WYSIWYG Editor field type

Plugins

  • All Plugins
  • oik base plugin
  • FREE oik plugins
  • WordPress plugins
  • Premium oik plugins

Themes

  • FREE themes
  • Bespoke themes
  • Premium themes

Blocks

  • All Blocks
  • Block examples
  • About Blocks

Shortcodes

  • All Shortcodes
  • Shortcode examples
  • About Shortcodes

Reference

  • About APIs
  • All APIs
  • All Classes
  • All Files
  • All Hooks

Support

  • Contact
  • Cookies policy
  • Get API key
  • Privacy
  • Request support
  • Sitemap
  • Stay informed
  • Terms and Conditions
oik-plugins
Email: oikplug@oik-plugins.com

Weight shipping plugins

Find out which cart weight shipping plugin you need for your WooCommerce site.
Which cart weight based plugin do I need?

Site:  www.oik-plugins.com
© Copyright oik-plugins 2011-2025. All rights reserved.


Website designed and developed by Herb Miller of Bobbing Wide
Proudly powered by WordPress and oik-plugins

WordPress version: 6.8.3

Gutenberg version: 21.7.0

PHP version: 8.2.29