Hi
I have used your plugin short code to display menu in header.php directly its working fine by below code
<?php echo do_shortcode(‘[responsive_menu]’); ?>
I have done by this below link
“https://responsive.menu/knowledgebase/using-the-shortcode/?utm_source=free-plugin&utm_medium=page&utm_campaign=using-the-shortcode”
When I am trying to print this menu short code <?php echo do_shortcode(‘[responsive_menu]’); ?> by ajax its not working.
Please refer the below code are not working,
in Functions.php
function func_resonsive_menu(){
echo do_shortcode(‘[responsive_menu]’);
die();
}
add_action(‘wp_ajax_resonsive_menu’,’func_resonsive_menu’);
add_action(‘wp_ajax_nopriv_resonsive_menu’, ‘func_resonsive_menu’);
Javascript:
$.get(“<?php echo admin_url(‘admin-ajax.php’)).’?action=resonsive_menu’;?>”
function (data) {console.log(data);
});
its just printing short code instead of menu while loading by ajax.
Hope you understood if you have knowledge in wordpress ajax.
Thanks,
Karthi.