Site logo

Archived topic

Add some label text before dynamic data

3 replies · Started by A on March 21, 2023

Viewing posts 1–4 of 4

Hi,
Trying to make a template for a singular custom post. The custom post type are some products with the specs in custom fields like weight and color for example.

I used Elements Content Template and in Dynamic Data I selected data source Current post, Content source Post Meta and Post Meta fields.

By using header block I can add the custom fields into my Content template.

For example:
100 gram
red

But what if I want to label it/add some text before (on the same line) like:
Weight: 100 gram
Color: red

How do I do that with Generatepress/Generateblocks?

Hi there,

theres a few ways.
A simple one is:

1. add Container Block. In its Layout - set the Display to Flex and give it a little Column Gap.
2. add a headline block for your label, and one for your dynamic data inside that container.

Repeat this for each row.

Curious what another way is so that I can have a more table like presentations of the specs?

You should be able to achieve this using the same method.

This archived topic is closed to new replies.