Remove Settings Menu Button

Home Forums Front End PM PRO Remove Settings Menu Button

This topic is: Resolved
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #14705
    Rob Storms

    Trying to implement code from ‘’.

    Using Theme ‘Twenty Fifteen’.

    Tried to add the following lines into functions.php for this theme, and ‘Update File’.

    add_filter( ‘fep_menu_buttons’, ‘fep_cus_fep_menu_buttons’, 99 );

    function fep_cus_fep_menu_buttons( $menu )
    unset( $menu[‘settings’] );
    return $menu;

    When I try to update I get the following message:

    Your PHP code changes were rolled back due to an error on line 434 of file wp-content/themes/twentyfifteen/functions.php. Please fix and try saving again.
    syntax error, unexpected ‘$menu’ (T_VARIABLE)

    What now?


    Can you please recheck you had added correct code?
    Which line is 434 line?
    Can you please give me a screenshot of your added code and before and after 2 lines?

    Rob Storms

    Something strange with cut and paste from your website.

    I re-cut from the message above, and pasted, and it appears to work.

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

You need to purchase ‘Front End PM PRO’ to create topic in this support forum.

If you already purchased ‘Front End PM PRO’ please LOGIN.