Call Shortcode using Jquery
-
Hi there,
I would like to append Ajax Search Lite form beside my search icon (at right side) of my navigation menu. I tried to call the shortcode using Jquery but its not working.
$j('<div class="language"><div class="left lang-col" style="color:white;">?| <a id="show-search" onclick="showSearch()" class="search_button" href="javascript:void(0)"><img src="https://designvillage.benova.com.my/wp-content/uploads/2021/09/search-icon.png" width="18px"></a> [wpdreams_ajaxsearchlite]</p</div>').insertBefore('.header_top_bottom_holder' );
I tried to replace the shortcode with this code also doesn’t work.
<?php echo do_shortcode('[wpdreams_ajaxsearchlite]'); ?>
Is there any way to achieve this?
The page I need help with: [log in to see the link]
- The topic ‘Call Shortcode using Jquery’ is closed to new replies.