Home › Forums › Front End PM PRO › Assign a special icon to each of the buttons in the fep_men
- This topic has 4 replies, 2 voices, and was last updated 8 years, 1 month ago by Dominique Baril.
- AuthorPosts
- October 27, 2017 at 6:03 am #7420Dominique BarilParticipant
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; }October 27, 2017 at 2:51 pm #7436Shamim HasanKeymasterYou 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';October 27, 2017 at 9:12 pm #7446Dominique BarilParticipantIf I’m right, you added the classes
• fep-message-content-own
• fep-per-message-own
• fep-message-content-admin
• fep-per-message-adminThat seems great. Can’t wait for the next release
October 27, 2017 at 9:14 pm #7450Dominique BarilParticipantSorry, my previous message is not in the right thread
October 27, 2017 at 9:55 pm #7452Dominique BarilParticipantThank you for the quickness of your answer
- AuthorPosts
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.