• Hi,

    I am trying to integrate mega menu to my theme.

    I have created menu theme and exported its code which is looks like json.

    No what I have to do next? I had read some where about scss file that it should be in megamenu folder but unable to find that document again. How to generate scss?

    How to integrate exported code to theme that user dont have to create or import menu again?

    Thanks
    Waiting for your response.

    https://ww.wp.xz.cn/plugins/megamenu/

Viewing 1 replies (of 1 total)
  • Plugin Author megamenu

    (@megamenu)

    Hi xvelopers,

    Please do not worry about the SCSS, you do not need to change that (and if you do, it might stop working for future releases).

    Instead, simply add this to your themes functions.php file:

    /** Register a new menu theme for Max Mega Menu **/
    function max_mega_menu_add_custom_theme( $themes ) {
    
    	// make sure this is unique
    	$custom_key = 'xvelopers';
    
    	// replace with your theme export
    	$custom_theme_json = '{"title":"My Custom Theme",............... both;\n}"}';
    
    	// do not edit below this line
    	$themes[ $custom_key ] = json_decode( $custom_theme_json, true );
    
    	return $themes;
    
    }
    add_filter( 'megamenu_themes', 'max_mega_menu_add_custom_theme' );

    PS I would like to promote your theme on the Max Mega Menu blog once it has been developed, please let me know once it is released 🙂
    Regards,
    Tom

Viewing 1 replies (of 1 total)

The topic ‘Theme Integration’ is closed to new replies.