WordPress.org

Ready to get started?Download WordPress

Forums

Login With Ajax
[resolved] Change profile link in widget (6 posts)

  1. add.redford
    Member
    Posted 1 year ago #

    Hey there, I'm looking to simply change the destination of the 'profile' link in the widget. I want to avoid users having to access the back end of wordpress and have decided to use the Front-End Users plugin to do so. Now I just need to point them in the right direction :) Which file should I edit to implement this change? I noticed a few people have already mentioned this might be useful also.

    Thanks in advance!

    http://wordpress.org/extend/plugins/login-with-ajax/

  2. voji91
    Member
    Posted 1 year ago #

    hi there,
    1.in your wordpress menu go to Plugins-> Installed Plugins
    2.under "Login With Ajax" select Edit
    3.from the right sidebar choose : login-with-ajax/widget/widget.css
    4.then the right sidebar will update so choose : login-with-ajax/widget/default/widget_in.php
    5.go down in the codes (center of the page) and find this line : if( function_exists('bp_loggedin_user_link') )
    6.now change the link to where you want it to point. (simply change YOUR_DESTINATION)

    if( function_exists('bp_loggedin_user_link') ){ ?>
    <a href="YOUR_DESTINATION" ><?php echo strtolower(__('profile')) ?></a><br/>
    	<?php }else{ ?>
    	<a href="YOUR_DESTINATION" ><?php echo strtolower(__('profile')) ?></a><br/>
    <?php
    }  ?>
  3. add.redford
    Member
    Posted 1 year ago #

    Cheers mate =) I actually figured it out already but thanks all the same!

  4. voji91
    Member
    Posted 1 year ago #

    your welcome :)

  5. dreamdancerdesign
    Member
    Posted 1 year ago #

    voji91, thanks for posting that code to change the destination. This plugin really needs that addition, makes it perfect.

  6. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    I'd argue that plugins with front-end profile pages should deal with this, i.e. redirect /wp-admin/profile.php to another page. I am pretty sure that a few do (e.g. s2member)

    that said, will consider this as a setting

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic