• Resolved heronco

    (@heronco)


    Hello – this is a great plugin!

    I’m customizing the individual user cards on the group display page. I’ve been able to customize the group-tpl.php template to edit the display on the first page. BUT, the pagination calls the javascript file, which calls a function defined in a class (in class-profile-magic-request.php) – which means that once someone clicks through to page 2 and forward, the user cards default to the out-of-the-box display. This also happens on the search page.

    I haven’t figured out how to change the class-defined functions.

    I may be way overthinking this – my thought is to create a new function to replace ‘get_group_page_fields_html’ and then track through everywhere it’s used and rewrite that page, including adding in a new js file.

    Is there a simpler way? My end goal for the cards:
    – Replace the display name on the card with the user’s nickname
    – Change the address display to just City/State, and
    – Display a custom meta field with a link to the user’s email (not showing the email itself, but Email User)

    Thank you!!

Viewing 1 replies (of 1 total)
  • Plugin Author ProfileGrid Support

    (@profilegrid0)

    Hello @heronco,

    Currently, function ‘get_group_page_fields_html’ cannot be customized, We do not recommend file edit, as the file changes will be wiped out with update of plugin.

    You may use create your own function in theme function file and then may use that function instead of this function.

    To change the display name, you may check our extension “User Display Name”. For more details on this, please visit the link: https://profilegrid.co/customize-wordpress-user-profiles-display-name/

    Address field displays all data like address, city, state which you have enabled in field settings. You may hide/show a field on profile by disabling the option “Display on Profile Page” in field settings.

    plugin does not allow the email field with a link as of now.

    I hope this helps, In case you need more assistance, Please get in touch with us directly using this form.

Viewing 1 replies (of 1 total)
  • The topic ‘Customizing Group Card’ is closed to new replies.