Support » Plugin: Theme My Login » Remove Personal Options in User Profile

Viewing 11 replies - 1 through 11 (of 11 total)
  • I could remove that part by editing profile-form.php in the theme-my-login template directory.

    This worked for me, I got the idea from another forum but can’t remember where.

    This code goes in your functions.php


    function remove_opt_start($adddiv) {
    $gettitle = array(‘#<h3>Personal Options</h3>#’);
    $adddiv = preg_replace($gettitle, ‘<div class=”hidden”>’, $adddiv,1);
    return $adddiv;

    function start_remove_opt_start() { ob_start(“remove_opt_start”); }

    function end_remove_opt_start() { ob_end_flush(); }

    function remove_opt_end($addend) {
    $getname = array(‘#<h3>Name</h3>#’);
    $addend = preg_replace($getname, ‘</div><h3>Name</h3>’,$addend,1);
    return $addend;

    function start_remove_opt_end() { ob_start(“remove_opt_end”); }

    function end_remove_opt_end() { ob_end_flush(); }



    Plugin Author Jeff Farthing


    If you mean TML’s themed profile modules, just simply copy /theme-my-login/templates/profile-form.php to your current theme’s directory and edit it as you wish.

    Good work Jeff.

    After trying this and trying to access my profile, I’m getting “Parse error: syntax error, unexpected T_ENDIF on line 2” of the profile-form.php now in my theme’s directory. Is there something I need to edit, change or delete to get this to work?

    Plugin Author Jeff Farthing


    Apparently, you removed the if part of a PHP conditional statement but not the endif. If you don’t understand, post your entire profile-form.php contents to Pastebin and link here.

    Here’s my edit-profile.php file:

    So far, I’ve tried removing everything from line 11 (<h3><?php _e( ‘Personal Options’, ‘theme-my-login’ ); ?></h3>) to line 41 (<?php endif; // function exists ?>). If this is incorrect, feel free to point me in the right direction.

    Any help is greatly appreciated.

    Plugin Author Jeff Farthing


    That code is almost unreadable, as it has no formatting. Please post well formatted code, as found in original templates.

    Sorry. How’s this?

    You know, after looking at that non-compressed version of the file, I got it working. Just had to delete the following…

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Thanks for your help!

    Hip hip hurray for Theme My Login! Thanks Jeff.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Remove Personal Options in User Profile’ is closed to new replies.