This topic has 4 replies, 3 voices, and was last updated 10 years by Abe.

  • Author
  • #7965
     Marcyboy
    Participant

    I would like to add some static text above the members profile information only visible on members own profile page. In short I want to give some information to a member on how to edit their profile. Could you tell me how to do that please.

    #8058
     Abe
    Keymaster

    Hi, You need some PHP and HTML knowledge. Edit sweetdate/members/single/member-header.php
    to show only for the current profile you need to put the text inside the php condition:

    text to show

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

    #8083
     Marcyboy
    Participant

    Great, thanks.

    #10449
     wttribe
    Participant

    Hi great thanks.
    I did a step more and put a link to it:

    < ?php if (bp_is_my_profile()) { ?>
    < div class=”generic-button” id=”send-private-message”>
    < a class=”send-message” href=”profile/edit/group/1/#item-nav”>Edit Profile< /a>< /div>
    < ?php } ?>

    My question now is: how do I make that “Edit Profile” translatable with wpml?

    I don’t find it in translation strings. How do I do it? thanks

    #10659
     Abe
    Keymaster

    Hi, you need to wrap the Edit profile string into a translation function like this
    <?php _e('Edit Profile', 'kleo_framework');?>
    and it will appear to be translated

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?