• Resolved Lars Henriksen

    (@adjunkten)


    Hello

    I would like to be able to show custom/translatable field labels in the avatar list,like:

    (Author X Image)
    (Display Name)
    Email (label): (display email)
    Last post (label): (display Link to last post)

    Would that be hard to add?

    Thanks, Lars

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Paul Bearne

    (@pbearne)

    Hi

    I should add the labels and hide them for accessibliity

    In the meantime, you could add them via CSS

    .show_last_post::before {
    content: ‘Last post: ‘;
    }

    You are should have the lang code set as a class on your body something like this will work.

    body.en .show_last_post::before {
    content: ‘Last post: ‘;
    }

    Thread Starter Lars Henriksen

    (@adjunkten)

    Hi Paul,

    Thanks for the helpful answer.

    I tried to add your css here , but it doesn’t add anything?

    Plugin Author Paul Bearne

    (@pbearne)

    Try this pattern

    html:lang(da-DK) .email::before {
    content: 'Emal-da: ';
    }
    html:lang(en-US) .email::before {
    content: 'Emal: ';
    }
    Thread Starter Lars Henriksen

    (@adjunkten)

    Hi Paul
    Thanks, but it doesn’t work for me.

    I just add the css to ‘custom css’ in the customizer of my theme.
    I am not sure what you mean by this:

    `You are should have the lang code set as a class on your body something like this will work.

    body.en .show_last_post::before {
    content: ‘Last post: ‘;
    }`

    Should this css be added elsewhere?

    Plugin Author Paul Bearne

    (@pbearne)

    I would add the CSS in the customizer or in a child theme CSS

    Thread Starter Lars Henriksen

    (@adjunkten)

    This works:

    .Email::before {
    content: “Email:”;
    }

    Source:Stackoverflow

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Suggestion: Show labels before meta fields’ is closed to new replies.