Assign a special icon to each of the buttons in the fep_men


Home Forums Front End PM PRO Assign a special icon to each of the buttons in the fep_men

This topic is: Resolved
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #7420
    Dominique Baril
    Participant

    Hi Shamim,

    I would like to assign a special icon to each of the buttons in the fep_menu. I tried assigning a new class to the buttons using the ‘fep_menu_buttons’ filter, just to realise that fep-button and fep-button-active classes where rather important, so I tried defining an ID to the buttons using the same filer, however, it doesn’t work, probably because ID is not defined in the parent array.

    Do you have any suggestions on how I can achieve to style each button differently?

    Thank you

    The following code is not working

    add_filter( 'fep_menu_buttons', 'fep_cus_fep_menu_buttons', 99 );
    function fep_cus_fep_menu_buttons( $menu )
    {
        $menu['newmessage'] = array(
          'id' => 'button_newmessage'
        );
        $menu['messagebox'] = array(
          'id' => ' button _messagebox'
        );
        $menu['settings'] = array(
          'id' => ' button _settings'
        );
        $menu['announcements'] = array(
          'id' => ' button _announcements'
        );
        $menu['directory'] = array(
          'id' => ' button _directory'
        );
        return $menu;
    }
    #7436
    shamim
    Keymaster

    You can pass different class for different button. Next version you will be able to pass id also.
    In your code you are overriding full button, it will be better if you override just what you need. eg. use $menu['newmessage']['class'] = 'fep-button your_class';

    #7446
    Dominique Baril
    Participant

    If I’m right, you added the classes
    • fep-message-content-own
    • fep-per-message-own
    • fep-message-content-admin
    • fep-per-message-admin

    That seems great. Can’t wait for the next release

    #7450
    Dominique Baril
    Participant

    Sorry, my previous message is not in the right thread

    #7452
    Dominique Baril
    Participant

    Thank you for the quickness of your answer

Viewing 5 posts - 1 through 5 (of 5 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.