• Can anyone advise me on how to go about making my profile pages and the membership directory add the word “Family” after the Display Name? I have the display name set to “last_name” – so ideally, my profile page would display “Berch Family”, and the same would show for each user on the membership directory. (The idea is to use this to create a directory of families, where each family shares one user account). Examples of the change I should make to the code and which files to modify would be HUGELY appreciated. Thanks!

    https://www.ads-software.com/plugins/ultimate-member/

Viewing 3 replies - 1 through 3 (of 3 total)
  • There are several ways of doing this.
    1. CSS
    2. javascript
    3. hidden fields

    The first is probably the easiest but also the laziest in terms of coding principles.

    In your theme style.css file add

    .um-name a:after {
        content: ' Family';
    }
    Thread Starter dberch

    (@dberch)

    Oooh, thanks! It hadn’t occurred to me to do this using CSS. That worked for the membership directory page, but I’m having trouble getting it to work on the profile pages. The top of each profile page shows the display name using “last_name” but when I inspect it in my browser the css is only showing “h1” – no special classes that I could append the pseudo-element to. Any other ideas? Thanks again!

    I’m pretty sure you can append pseudo-elements to headings.

    .um-profile h1:after {
        content: ' Family';
    }

    Let me know if that works

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add "Family" to Display Name’ is closed to new replies.