Support » Plugin: Custom User Profile Photo » How to use this on Customizr theme?

  • oshun55

    (@oshun55)


    Hi,

    I just downloaded this plug in but cannot figure out how to get the avatar to show because there is no single.php template in the “Customizr” theme that I’m using.

    I read a previous post which discussed this but did not get a resolution. Can someone please help? I am not into heavy coding, so I may have missed something. Thanks in advance for all help.

    https://wordpress.org/plugins/custom-user-profile-photo/

Viewing 1 replies (of 1 total)
  • Hello oshun55,
    Sorry for the delayed response. We be happy to help if we can.

    If you are attempting to use this plugin to replace comment avatars, this can be a bit more complex as you’ll want to loop through the comments and inject your custom photos. This can be done by either creating a new Walker class to add to wp_list_comments() or by using get_comments() and then doing a foreach loop to iterate through them and customize them. Both will require some slightly advanced WordPress and PHP knowledge.

    If you’re simply trying to add this to a single.php page to display the post author’s image, that is much easier. If you do not have a single.php file in your theme directory, it might be in your parent theme directory if you’re using a child theme. Otherwise, you’ll need to backtrack using the WordPress template hierarchy (https://codex.wordpress.org/Template_Hierarchy), in which case this is most likely going to be index.php. once you find it, you can use the code snippets provided in the plugin description and modify as needed to get the right user_id,

    Please let us know if this helps and we can try to give you some suggestion to get your images working.

    Cheers,
    3five

Viewing 1 replies (of 1 total)
  • The topic ‘How to use this on Customizr theme?’ is closed to new replies.