This topic has 6 replies, 3 voices, and was last updated 11 years by wisinyyandel7.

  • Author
  • #5032
     wisinyyandel7
    Participant

    Hello Sqadmin,
    Could you please help me in how to Add a new description in membership levels?
    Eg. I would like to add “Chat with your friends” in PLATINUM and TRIAL http://d.pr/i/uMYc
    I would like to put “Chat with your friends” below to “Add media to your profile” How can I do that?
    Is it possible to have that description and Sweetdate – Membership option in wordpress like the ones you already have made?
    Thanks for your help

    #5144
     SQadmin
    Keymaster

    Hi,
    You can add this to sweetdate-child/functions.php. This won’t actually add a restriction but it will allow you to display the text in front-end and customize the setting from Sweetdate – Memberships like other restrictions

    COPY CODE
    
    
    add_filter('kleo_pmpro_level_restrictions', 'my_restriction_option');
    function my_restriction_option($settings) {
    	$settings[] =     array(
            'title' => __('Restrict users from adding media to their profile using rtMedia or bpAlbum','kleo_framework'),
            'front' => __('Add media to your profile','kleo_framework'),
            'name' => 'my_setting_alias'
        );
    	
    	return $settings;
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #5209
     wisinyyandel7
    Participant

    Hey my friend thanks for the information.
    I appreciate that, but I am not too sure where I can put this in the file.
    could you please tell me if I am wrong? I mean do you want me to paste this in here ? http://d.pr/i/yNjq
    this is the file which you are talking about? http://d.pr/i/lSqG
    Thanks for your help and I’m sorry I am not an expertise in this type of programming.
    Thanks bro.
    Regards,

    #5213
     wisinyyandel7
    Participant

    I have found the sweetdate-function.php in wordpress, if it is the file, I don’t know where to put what you type above of these two msgs. http://d.pr/i/lZKw
    Thanks again

    #5224
     JohnDoe
    Participant

    You have Sweetdate and sweetdate-child theme, functions.php has to be edited in the child theme. Make sure your child theme is active.

    the code can go anywhere between the php tags.

    <?php
    Code here
    ?>

    #5263
     SQadmin
    Keymaster

    Thanks @JohnDoe
    Code goes to sweetdate-child/functions.php

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

    Thanks @JohnDoe and Sqadmin. One thousands thanks. I really appreciate that. It works.

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

The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?