• Resolved Sun Cheetham

    (@suncheetham)


    Hi,

    I would like to add some extra content (adding social buttons) in the header section with the right menu option next to the right menu icon, it seems this is only achievable by editing the plugin core file,

    Is there any way I can add the extra content without editing the core file – class-wp-mobile-menu-core.php?

    Thanks,
    Sun.

    • This topic was modified 3 years, 3 months ago by Sun Cheetham.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Rui Guerreiro

    (@takanakui)

    Hi @suncheetham,

    There is a filter that you can use.
    Add the code below to your functions.php of your child theme. And add the desired code next to the current HTML.

    add_filter( 'mm_rightt_menu_filter', 'my_custom_html_right_menu' );
    function my_custom_html_right_menu(){
    	return '<a href="#" class="mobmenu-right-bt mobmenu-trigger-action" data-panel-target="mobmenu-right-panel"><i class="mob-icon-menu-1 mob-menu-icon"></i></a>';
    }

    Hope it helps.

    Plugin Author Rui Guerreiro

    (@takanakui)

    Hi @suncheetham,

    Did you saw my reply? Did it worked?
    Thanks

    Plugin Author Rui Guerreiro

    (@takanakui)

    Will close the topic for now. Let me know if necessary.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Edit header’ is closed to new replies.