Jump to content
abuzzelli

hide pagelines info on user profile page

Recommended Posts

abuzzelli

I'd like to hide the pagelines info on user profile page. I'm not using this feature and it will be confusing to the users. How can I do this?

Screen Shot 2018-06-07 at 4.32.28 PM.png

Share this post


Link to post
Share on other sites
edgarcheverier

Hi,

You need to go to PageLines Settings => Pro options => Remove PageLines Link Credit? https://cl.ly/102B1W3p0C3t

Share this post


Link to post
Share on other sites
Aires

Hi @abuzzelli,

The only way I know to remove those settings is to edit the setting.php file inside. the platform 5 plugin. Line 200 -275

/**
  function profile_settings() {

    $settings = array();

    $settings['basics'] = array(
      'key'       => 'basics',
      'icon'      => 'pagelines',
      'pos'       => 6,
      'title'     => __( 'PageLines Info' , 'pl-platform' ),
      'opts'  => array(
        array(
         'key'           => 'pl_company',
         'type'          => 'text',
         'title'         => __( 'Company Name', 'pl-platform' ),
        ),

        array(
         'key'           => 'pl_site',
         'type'          => 'text',
         'title'         => __( 'Company Website URL', 'pl-platform' ),
        ),

        array(
         'key'           => 'pl_position',
         'type'          => 'text',
         'title'         => __( 'Your Position / Role', 'pl-platform' ),
        ),
        array(
         'key'           => 'pl_facebook',
         'type'          => 'text',
         'title'         => __( 'Your Facebook Username', 'pl-platform' ),
        ),
        array(
         'key'           => 'pl_instagram',
         'type'          => 'text',
         'title'         => __( 'Your Instagram Username', 'pl-platform' ),
        ),
        array(
         'key'           => 'pl_instagram_token',
         'type'          => 'text',
         'title'         => __( 'Your Instagram Token', 'pl-platform' ),
         'help'          => __( 'Your Instagram API access token.<br/> <a href="http://instagram.pixelunion.net/" target="_blank">Look it up here</a>.', 'pl-platform' ),
        ),
        array(
         'key'           => 'pl_github',
         'type'          => 'text',
         'title'         => __( 'Your Github Username', 'pl-platform' ),
        ),
        array(
         'key'           => 'pl_twitter',
         'type'          => 'text',
         'title'         => __( 'Your Twitter Username', 'pl-platform' ),
        ),

        array(
         'key'           => 'pl_city',
         'type'          => 'text',
         'title'         => __( 'Your Home City', 'pl-platform' ),
        ),
        array(
         'key'           => 'pl_country',
         'type'          => 'text',
         'title'         => __( 'Your Home Country', 'pl-platform' ),
        ),

      ),
    );

    $settings = apply_filters( 'pl_platform_profile_settings_array', $settings );

    uasort( $settings, 'pl_compare_position' );

    return $settings;
  }
**/

I just commented them out inside the plugin editor and it removed those options from the user settings. 

Ideally you would do this in a child theme. 


ndTgvai.jpg

Visit iheartpagelines.com for the latest tutorials on PageLines related products.

 

Share this post


Link to post
Share on other sites
abuzzelli

@Aires Thanks for the suggestion. I tried this and it's not working. Not sure what I did wrong. I have a child theme and I copied the settings.php into it I left everything as is but commented out what you said to. 

Screen Shot 2018-06-08 at 6.29.02 AM.png

Share this post


Link to post
Share on other sites
Aires

I will try it in a child theme and let you know what I find.


ndTgvai.jpg

Visit iheartpagelines.com for the latest tutorials on PageLines related products.

 

Share this post


Link to post
Share on other sites
Aires

I attempted to get this to work in my child theme and failed miserably  I remember in the past this worked with DMS I will see if I can find another solution for you maybe in the form of a hook. But I will keep you posted.


ndTgvai.jpg

Visit iheartpagelines.com for the latest tutorials on PageLines related products.

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×