Archived topic
format of ACF field with type textfield in Hook block
4 replies · Started by Torsten on November 22, 2022
I do have two ACF custom fields.
One is of type "text", the second is of type "textfield"
I wankt to add the information of both field dynamically to the end of the main content of a post, so I created an element of type "Block - Hook" and added formatted text.
I insert both fields via a heading block and with "dynamic options" - Post Meta and respective field name.
I can easily control the format (fontsize, color, spacing) via the block options on the right for the entry with "text" ACF-field and this works fine.
When doing the same to the textfield entry, the typography options are somehow more limited, and are not applied to the final output, but only to the editor view.
How can I change/control the formatting of a custom field of type textfield (or similar field with WYSIWYG-type)?
My bad, just noticed the block for second field was a paragraph, just the tag name was h2
but still, all the format options for textfield do not impact the output
now I understand, both the block and the tag name needs to be heading. now it works fine.
Glad to hear :)