Home › Forums › Legacy Support › Support queries › How-to & Troubleshooting › Redirect Avatar link to the actual update profile page
- This topic has 9 replies, 3 voices, and was last updated 5 years ago by logan.
Viewing 10 posts - 1 through 10 (of 10 total)
-
AuthorPosts
-
April 16, 2019 at 5:58 pm #204873twumj01ParticipantI want to change link for avatar photo on the profile page from profile to "Change photo" pageApril 17, 2019 at 5:56 am #204930loganMemberHello, Please refer this tutorial: https://wplms.io/support/knowledge-base/customise-profile-menu-dropdown-wplms-2-6/
Tip: For better support always share a screenshot: Please provide proper screenshot, use https://prnt.sc/ to upload and share url of the screenshot. If you want to send us a video of the issue, use https://screencast-o-matic.com/ to upload and share url of the video.April 18, 2019 at 11:35 am #205191twumj01ParticipantThis reply has been marked as private.April 18, 2019 at 12:46 pm #205207maximusMemberHi twumj01, Please share valid credentials. The credentials given by you is showing invalid. Please mark as private reply while sharing the credentials. Waiting for quick response.April 19, 2019 at 2:30 am #205276twumj01ParticipantThis reply has been marked as private.April 19, 2019 at 8:16 am #205338loganMemberHello, Yes that in possible by custom codes. Please paste this snippets in your wp-admin >> plugins >> editor >> wplms-customizer plugin >> wplms-customizer.php add_action('wp_footer','redirectAfterAvatarClick',999 ); function redirectAfterAvatarClick() { $home_url = get_home_url(); $username = bp_core_get_username(bp_loggedin_user_id()); $location = $home_url.'/members/'.$username.'/profile/change-avatar/'; ?> <script> jQuery(document).ready(function($){ $("div#buddypress .member_header div#item-header-avatar>a").attr("href", "<?php echo $location; ?>"); }); </script> <?php } it will change the url to the change profile image.April 19, 2019 at 12:40 pm #205376twumj01ParticipantI have tried it but it didnt workApril 20, 2019 at 7:24 am #205463loganMemberHello, Yes it was not working because the classes were changing on your website. Now i have fixed this on your website here: http://prntscr.com/negoce Check the changes i have made: https://cl.ly/8064a6 updated code is this: add_action('wp_footer','redirectAfterAvatarClick',999 ); function redirectAfterAvatarClick() { $home_url = get_home_url(); $username = bp_core_get_username(bp_loggedin_user_id()); $location = $home_url.'/members/'.$username.'/profile/change-avatar/'; ?> <script> jQuery(document).ready(function($){ $("div#buddypress div#item-header div#item-header-avatar a").attr("href", "<?php echo $location; ?>"); }); </script> <?php }April 21, 2019 at 2:45 pm #205583twumj01ParticipantThanks a million! :)April 21, 2019 at 6:48 pm #205587loganMemberDear Friend,
Glad you’re enjoying the theme & support – thanks for using it!
Please write your review. I would really appreciate that!
Here: https://themeforest.net/item/wplms-learning-management-system/reviews/6780226If I can be of assistance, please do not hesitate to contact me again.
Closing this topic.
-
AuthorPosts
Viewing 10 posts - 1 through 10 (of 10 total)
- The topic ‘Redirect Avatar link to the actual update profile page’ is closed to new replies.