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
    Posts
  • #14705
    Rob Storms
    Participant

    Trying to implement code from ‘https://www.shamimsplugins.com/docs/front-end-pm/customization/remove-settings-menu-button/?utm_campaign=admin&utm_source=sidebar&utm_medium=useful_links’.

    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?

    #14722
    shamim
    Keymaster

    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?

    #14726
    Rob Storms
    Participant

    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.