Title: Add Shortcode to the Custom HTML for theme
Last modified: October 30, 2023

---

# Add Shortcode to the Custom HTML for theme

 *  Resolved [stratalignnz](https://wordpress.org/support/users/stratalignnz/)
 * (@stratalignnz)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/add-shortcode-the-custom-html/)
 * PLEASE NOTE: we do have a valid licence on our live site but this is our testing
   environment.
 * I am using Hybrid Composer, with Light Wire Theme. Currently the theme option
   for menus has a check box to call the standard post search button. See image1
 * ![](https://i0.wp.com/stratalignldev.wpengine.com/supportimages/image1.png?ssl
   =1)
 * I believe it is pulling this code from the parent themes functions.php file:
 * ![](https://i0.wp.com/stratalignldev.wpengine.com/supportimages/image3.png?ssl
   =1)
 * I want to replace this search box with your form [aws_search_form], but the only
   way this can be inputted is through the themes custom HTML section please see
   image below:
 * ![](https://i0.wp.com/stratalignldev.wpengine.com/supportimages/image2.png?ssl
   =1)
 * I have tried various solutions like trying to echo the shortcode but it is not
   working.
 * [echo array( $this, ‘markup’ )();]
 * [echo aws_searchbox_markup();]
 * It just displays the wording i.e. aws_searchbox_markup();
 * How can I add this to the HTML please?
    -  This topic was modified 2 years, 7 months ago by [stratalignnz](https://wordpress.org/support/users/stratalignnz/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fadd-shortcode-the-custom-html%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [ILLID](https://wordpress.org/support/users/mihail-barinov/)
 * (@mihail-barinov)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/add-shortcode-the-custom-html/#post-17163713)
 * Hi,
 * Did you try to use shortcode
 *     ```wp-block-code
       [aws_search_form]
       ```
   
 * ?
 *  Thread Starter [stratalignnz](https://wordpress.org/support/users/stratalignnz/)
 * (@stratalignnz)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/add-shortcode-the-custom-html/#post-17165175)
 * Yes of course I did but all it does is display the code.
 *  Plugin Author [ILLID](https://wordpress.org/support/users/mihail-barinov/)
 * (@mihail-barinov)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/add-shortcode-the-custom-html/#post-17166663)
 * In this case I think this content box just doesn’t allow you to add shortcodes
   inside it.
 * You can try to enable the ‘Seamless integration’ option from the plugin settings
   page. It must replace all your default search forms with the plugin ones.
 * Regards

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Add Shortcode to the Custom HTML for theme’ is closed to new replies.

 * ![](https://ps.w.org/advanced-woo-search/assets/icon-256x256.png?rev=3303984)
 * [Advanced Woo Search - Product Search for WooCommerce](https://wordpress.org/plugins/advanced-woo-search/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-woo-search/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-woo-search/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-woo-search/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-woo-search/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-woo-search/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [ILLID](https://wordpress.org/support/users/mihail-barinov/)
 * Last activity: [2 years, 7 months ago](https://wordpress.org/support/topic/add-shortcode-the-custom-html/#post-17166663)
 * Status: resolved