Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author megamenu

    (@megamenu)

    Hi ramzesius,

    It’s possible but it’s a bit messy right now, I need to think of a better way to do this but I will make sure this method continues to work in the future.

    function add_custom_theme($themes) {
    
    	// make sure this is unique
    	$custom_key = 'ramzesimus';
    
    	// replace with your theme export
    	$custom_theme_json = '{"title":"My Custom Theme","container_background_from":"#222",....';
    
    	// do not edit below this line
    	$themes[$custom_key] = json_decode($custom_theme_json, true);
    
    	return $themes;
    }
    add_filter('megamenu_themes', 'add_custom_theme');

    Regards,
    Tom

    Thread Starter ramzesimus

    (@ramzesimus)

    Hi Tom,

    Looks comfortable enough for me 🙂 Will try and let you know.

    Thanks!
    Ramzesimus

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Predefined theme’ is closed to new replies.